home *** CD-ROM | disk | FTP | other *** search
MacBinary | 2002-09-23 | 23.1 KB | [□□□□/□□□□] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Mon Sep 23 03:32:08 2002, modified Mon Sep 23 03:32:08 2002, 23114 bytes "lib-link.m4" , at 0x5aca 286 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
100%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| dearkID
| deark: macbinary
| default
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
| |
100%
| librempegprobeID
| DAT (Digital Audio Tape) (dat)
| default (weak)
|
|
id metadata |
---|
key | value |
---|
macFileType | [□□□□] |
macFileCreator | [□□□□] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 6c 69 62 2d 6c 69 | 6e 6b 2e 6d 34 00 00 00 |..lib-li|nk.m4...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 01 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 5a 4a 00 | 00 01 1e b9 b4 73 f8 b9 |.....ZJ.|.....s..|
|00000060| b4 73 f8 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.s......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 71 ae 00 00 |........|....q...|
|00000080| 23 20 6c 69 62 2d 6c 69 | 6e 6b 2e 6d 34 20 73 65 |# lib-li|nk.m4 se|
|00000090| 72 69 61 6c 20 32 20 28 | 67 65 74 74 65 78 74 2d |rial 2 (|gettext-|
|000000a0| 30 2e 31 31 2e 32 29 0a | 64 6e 6c 20 43 6f 70 79 |0.11.2).|dnl Copy|
|000000b0| 72 69 67 68 74 20 28 43 | 29 20 32 30 30 31 2d 32 |right (C|) 2001-2|
|000000c0| 30 30 32 20 46 72 65 65 | 20 53 6f 66 74 77 61 72 |002 Free| Softwar|
|000000d0| 65 20 46 6f 75 6e 64 61 | 74 69 6f 6e 2c 20 49 6e |e Founda|tion, In|
|000000e0| 63 2e 0a 64 6e 6c 20 54 | 68 69 73 20 66 69 6c 65 |c..dnl T|his file|
|000000f0| 20 69 73 20 66 72 65 65 | 20 73 6f 66 74 77 61 72 | is free| softwar|
|00000100| 65 2c 20 64 69 73 74 72 | 69 62 75 74 65 64 20 75 |e, distr|ibuted u|
|00000110| 6e 64 65 72 20 74 68 65 | 20 74 65 72 6d 73 20 6f |nder the| terms o|
|00000120| 66 20 74 68 65 20 47 4e | 55 0a 64 6e 6c 20 47 65 |f the GN|U.dnl Ge|
|00000130| 6e 65 72 61 6c 20 50 75 | 62 6c 69 63 20 4c 69 63 |neral Pu|blic Lic|
|00000140| 65 6e 73 65 2e 20 20 41 | 73 20 61 20 73 70 65 63 |ense. A|s a spec|
|00000150| 69 61 6c 20 65 78 63 65 | 70 74 69 6f 6e 20 74 6f |ial exce|ption to|
|00000160| 20 74 68 65 20 47 4e 55 | 20 47 65 6e 65 72 61 6c | the GNU| General|
|00000170| 0a 64 6e 6c 20 50 75 62 | 6c 69 63 20 4c 69 63 65 |.dnl Pub|lic Lice|
|00000180| 6e 73 65 2c 20 74 68 69 | 73 20 66 69 6c 65 20 6d |nse, thi|s file m|
|00000190| 61 79 20 62 65 20 64 69 | 73 74 72 69 62 75 74 65 |ay be di|stribute|
|000001a0| 64 20 61 73 20 70 61 72 | 74 20 6f 66 20 61 20 70 |d as par|t of a p|
|000001b0| 72 6f 67 72 61 6d 0a 64 | 6e 6c 20 74 68 61 74 20 |rogram.d|nl that |
|000001c0| 63 6f 6e 74 61 69 6e 73 | 20 61 20 63 6f 6e 66 69 |contains| a confi|
|000001d0| 67 75 72 61 74 69 6f 6e | 20 73 63 72 69 70 74 20 |guration| script |
|000001e0| 67 65 6e 65 72 61 74 65 | 64 20 62 79 20 41 75 74 |generate|d by Aut|
|000001f0| 6f 63 6f 6e 66 2c 20 75 | 6e 64 65 72 0a 64 6e 6c |oconf, u|nder.dnl|
|00000200| 20 74 68 65 20 73 61 6d | 65 20 64 69 73 74 72 69 | the sam|e distri|
|00000210| 62 75 74 69 6f 6e 20 74 | 65 72 6d 73 20 61 73 20 |bution t|erms as |
|00000220| 74 68 65 20 72 65 73 74 | 20 6f 66 20 74 68 61 74 |the rest| of that|
|00000230| 20 70 72 6f 67 72 61 6d | 2e 0a 0a 64 6e 6c 20 46 | program|...dnl F|
|00000240| 72 6f 6d 20 42 72 75 6e | 6f 20 48 61 69 62 6c 65 |rom Brun|o Haible|
|00000250| 2e 0a 0a 64 6e 6c 20 41 | 43 5f 4c 49 42 5f 4c 49 |...dnl A|C_LIB_LI|
|00000260| 4e 4b 46 4c 41 47 53 28 | 6e 61 6d 65 20 5b 2c 20 |NKFLAGS(|name [, |
|00000270| 64 65 70 65 6e 64 65 6e | 63 69 65 73 5d 29 20 73 |dependen|cies]) s|
|00000280| 65 61 72 63 68 65 73 20 | 66 6f 72 20 6c 69 62 6e |earches |for libn|
|00000290| 61 6d 65 20 61 6e 64 0a | 64 6e 6c 20 74 68 65 20 |ame and.|dnl the |
|000002a0| 6c 69 62 72 61 72 69 65 | 73 20 63 6f 72 72 65 73 |librarie|s corres|
|000002b0| 70 6f 6e 64 69 6e 67 20 | 74 6f 20 65 78 70 6c 69 |ponding |to expli|
|000002c0| 63 69 74 20 61 6e 64 20 | 69 6d 70 6c 69 63 69 74 |cit and |implicit|
|000002d0| 20 64 65 70 65 6e 64 65 | 6e 63 69 65 73 2e 0a 64 | depende|ncies..d|
|000002e0| 6e 6c 20 53 65 74 73 20 | 61 6e 64 20 41 43 5f 53 |nl Sets |and AC_S|
|000002f0| 55 42 53 54 73 20 74 68 | 65 20 4c 49 42 24 7b 4e |UBSTs th|e LIB${N|
|00000300| 41 4d 45 7d 20 61 6e 64 | 20 4c 54 4c 49 42 24 7b |AME} and| LTLIB${|
|00000310| 4e 41 4d 45 7d 20 76 61 | 72 69 61 62 6c 65 73 20 |NAME} va|riables |
|00000320| 61 6e 64 0a 64 6e 6c 20 | 61 75 67 6d 65 6e 74 73 |and.dnl |augments|
|00000330| 20 74 68 65 20 43 50 50 | 46 4c 41 47 53 20 76 61 | the CPP|FLAGS va|
|00000340| 72 69 61 62 6c 65 2e 0a | 41 43 5f 44 45 46 55 4e |riable..|AC_DEFUN|
|00000350| 28 5b 41 43 5f 4c 49 42 | 5f 4c 49 4e 4b 46 4c 41 |([AC_LIB|_LINKFLA|
|00000360| 47 53 5d 2c 0a 5b 0a 20 | 20 41 43 5f 52 45 51 55 |GS],.[. | AC_REQU|
|00000370| 49 52 45 28 5b 41 43 5f | 4c 49 42 5f 50 52 45 50 |IRE([AC_|LIB_PREP|
|00000380| 41 52 45 5f 50 52 45 46 | 49 58 5d 29 0a 20 20 41 |ARE_PREF|IX]). A|
|00000390| 43 5f 52 45 51 55 49 52 | 45 28 5b 41 43 5f 4c 49 |C_REQUIR|E([AC_LI|
|000003a0| 42 5f 52 50 41 54 48 5d | 29 0a 20 20 64 65 66 69 |B_RPATH]|). defi|
|000003b0| 6e 65 28 5b 4e 61 6d 65 | 5d 2c 5b 74 72 61 6e 73 |ne([Name|],[trans|
|000003c0| 6c 69 74 28 5b 24 31 5d | 2c 5b 2e 2f 2d 5d 2c 20 |lit([$1]|,[./-], |
|000003d0| 5b 5f 5f 5f 5d 29 5d 29 | 0a 20 20 64 65 66 69 6e |[___])])|. defin|
|000003e0| 65 28 5b 4e 41 4d 45 5d | 2c 5b 74 72 61 6e 73 6c |e([NAME]|,[transl|
|000003f0| 69 74 28 5b 24 31 5d 2c | 5b 61 62 63 64 65 66 67 |it([$1],|[abcdefg|
|00000400| 68 69 6a 6b 6c 6d 6e 6f | 70 71 72 73 74 75 76 77 |hijklmno|pqrstuvw|
|00000410| 78 79 7a 2e 2f 2d 5d 2c | 0a 20 20 20 20 20 20 20 |xyz./-],|. |
|00000420| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000430| 20 20 20 20 20 20 20 20 | 5b 41 42 43 44 45 46 47 | |[ABCDEFG|
|00000440| 48 49 4a 4b 4c 4d 4e 4f | 50 51 52 53 54 55 56 57 |HIJKLMNO|PQRSTUVW|
|00000450| 58 59 5a 5f 5f 5f 5d 29 | 5d 29 0a 20 20 41 43 5f |XYZ___])|]). AC_|
|00000460| 43 41 43 48 45 5f 43 48 | 45 43 4b 28 5b 68 6f 77 |CACHE_CH|ECK([how|
|00000470| 20 74 6f 20 6c 69 6e 6b | 20 77 69 74 68 20 6c 69 | to link| with li|
|00000480| 62 5b 5d 24 31 5d 2c 20 | 5b 61 63 5f 63 76 5f 6c |b[]$1], |[ac_cv_l|
|00000490| 69 62 5b 5d 4e 61 6d 65 | 5b 5d 5f 6c 69 62 73 5d |ib[]Name|[]_libs]|
|000004a0| 2c 20 5b 0a 20 20 20 20 | 41 43 5f 4c 49 42 5f 4c |, [. |AC_LIB_L|
|000004b0| 49 4e 4b 46 4c 41 47 53 | 5f 42 4f 44 59 28 5b 24 |INKFLAGS|_BODY([$|
|000004c0| 31 5d 2c 20 5b 24 32 5d | 29 0a 20 20 20 20 61 63 |1], [$2]|). ac|
|000004d0| 5f 63 76 5f 6c 69 62 5b | 5d 4e 61 6d 65 5b 5d 5f |_cv_lib[|]Name[]_|
|000004e0| 6c 69 62 73 3d 22 24 4c | 49 42 5b 5d 4e 41 4d 45 |libs="$L|IB[]NAME|
|000004f0| 22 0a 20 20 20 20 61 63 | 5f 63 76 5f 6c 69 62 5b |". ac|_cv_lib[|
|00000500| 5d 4e 61 6d 65 5b 5d 5f | 6c 74 6c 69 62 73 3d 22 |]Name[]_|ltlibs="|
|00000510| 24 4c 54 4c 49 42 5b 5d | 4e 41 4d 45 22 0a 20 20 |$LTLIB[]|NAME". |
|00000520| 20 20 61 63 5f 63 76 5f | 6c 69 62 5b 5d 4e 61 6d | ac_cv_|lib[]Nam|
|00000530| 65 5b 5d 5f 63 70 70 66 | 6c 61 67 73 3d 22 24 49 |e[]_cppf|lags="$I|
|00000540| 4e 43 5b 5d 4e 41 4d 45 | 22 0a 20 20 5d 29 0a 20 |NC[]NAME|". ]). |
|00000550| 20 4c 49 42 5b 5d 4e 41 | 4d 45 3d 22 24 61 63 5f | LIB[]NA|ME="$ac_|
|00000560| 63 76 5f 6c 69 62 5b 5d | 4e 61 6d 65 5b 5d 5f 6c |cv_lib[]|Name[]_l|
|00000570| 69 62 73 22 0a 20 20 4c | 54 4c 49 42 5b 5d 4e 41 |ibs". L|TLIB[]NA|
|00000580| 4d 45 3d 22 24 61 63 5f | 63 76 5f 6c 69 62 5b 5d |ME="$ac_|cv_lib[]|
|00000590| 4e 61 6d 65 5b 5d 5f 6c | 74 6c 69 62 73 22 0a 20 |Name[]_l|tlibs". |
|000005a0| 20 49 4e 43 5b 5d 4e 41 | 4d 45 3d 22 24 61 63 5f | INC[]NA|ME="$ac_|
|000005b0| 63 76 5f 6c 69 62 5b 5d | 4e 61 6d 65 5b 5d 5f 63 |cv_lib[]|Name[]_c|
|000005c0| 70 70 66 6c 61 67 73 22 | 0a 20 20 41 43 5f 4c 49 |ppflags"|. AC_LI|
|000005d0| 42 5f 41 50 50 45 4e 44 | 54 4f 56 41 52 28 5b 43 |B_APPEND|TOVAR([C|
|000005e0| 50 50 46 4c 41 47 53 5d | 2c 20 5b 24 49 4e 43 5d |PPFLAGS]|, [$INC]|
|000005f0| 4e 41 4d 45 29 0a 20 20 | 41 43 5f 53 55 42 53 54 |NAME). |AC_SUBST|
|00000600| 28 5b 4c 49 42 5d 4e 41 | 4d 45 29 0a 20 20 41 43 |([LIB]NA|ME). AC|
|00000610| 5f 53 55 42 53 54 28 5b | 4c 54 4c 49 42 5d 4e 41 |_SUBST([|LTLIB]NA|
|00000620| 4d 45 29 0a 20 20 64 6e | 6c 20 41 6c 73 6f 20 73 |ME). dn|l Also s|
|00000630| 65 74 20 48 41 56 45 5f | 4c 49 42 5b 5d 4e 41 4d |et HAVE_|LIB[]NAM|
|00000640| 45 20 73 6f 20 74 68 61 | 74 20 41 43 5f 4c 49 42 |E so tha|t AC_LIB|
|00000650| 5f 48 41 56 45 5f 4c 49 | 4e 4b 46 4c 41 47 53 20 |_HAVE_LI|NKFLAGS |
|00000660| 63 61 6e 20 72 65 75 73 | 65 20 74 68 65 0a 20 20 |can reus|e the. |
|00000670| 64 6e 6c 20 72 65 73 75 | 6c 74 73 20 6f 66 20 74 |dnl resu|lts of t|
|00000680| 68 69 73 20 73 65 61 72 | 63 68 20 77 68 65 6e 20 |his sear|ch when |
|00000690| 74 68 69 73 20 6c 69 62 | 72 61 72 79 20 61 70 70 |this lib|rary app|
|000006a0| 65 61 72 73 20 61 73 20 | 61 20 64 65 70 65 6e 64 |ears as |a depend|
|000006b0| 65 6e 63 79 2e 0a 20 20 | 48 41 56 45 5f 4c 49 42 |ency.. |HAVE_LIB|
|000006c0| 5b 5d 4e 41 4d 45 3d 79 | 65 73 0a 20 20 75 6e 64 |[]NAME=y|es. und|
|000006d0| 65 66 69 6e 65 28 5b 4e | 61 6d 65 5d 29 0a 20 20 |efine([N|ame]). |
|000006e0| 75 6e 64 65 66 69 6e 65 | 28 5b 4e 41 4d 45 5d 29 |undefine|([NAME])|
|000006f0| 0a 5d 29 0a 0a 64 6e 6c | 20 41 43 5f 4c 49 42 5f |.])..dnl| AC_LIB_|
|00000700| 48 41 56 45 5f 4c 49 4e | 4b 46 4c 41 47 53 28 6e |HAVE_LIN|KFLAGS(n|
|00000710| 61 6d 65 2c 20 64 65 70 | 65 6e 64 65 6e 63 69 65 |ame, dep|endencie|
|00000720| 73 2c 20 69 6e 63 6c 75 | 64 65 73 2c 20 74 65 73 |s, inclu|des, tes|
|00000730| 74 63 6f 64 65 29 0a 64 | 6e 6c 20 73 65 61 72 63 |tcode).d|nl searc|
|00000740| 68 65 73 20 66 6f 72 20 | 6c 69 62 6e 61 6d 65 20 |hes for |libname |
|00000750| 61 6e 64 20 74 68 65 20 | 6c 69 62 72 61 72 69 65 |and the |librarie|
|00000760| 73 20 63 6f 72 72 65 73 | 70 6f 6e 64 69 6e 67 20 |s corres|ponding |
|00000770| 74 6f 20 65 78 70 6c 69 | 63 69 74 20 61 6e 64 0a |to expli|cit and.|
|00000780| 64 6e 6c 20 69 6d 70 6c | 69 63 69 74 20 64 65 70 |dnl impl|icit dep|
|00000790| 65 6e 64 65 6e 63 69 65 | 73 2c 20 74 6f 67 65 74 |endencie|s, toget|
|000007a0| 68 65 72 20 77 69 74 68 | 20 74 68 65 20 73 70 65 |her with| the spe|
|000007b0| 63 69 66 69 65 64 20 69 | 6e 63 6c 75 64 65 20 66 |cified i|nclude f|
|000007c0| 69 6c 65 73 20 61 6e 64 | 0a 64 6e 6c 20 74 68 65 |iles and|.dnl the|
|000007d0| 20 61 62 69 6c 69 74 79 | 20 74 6f 20 63 6f 6d 70 | ability| to comp|
|000007e0| 69 6c 65 20 61 6e 64 20 | 6c 69 6e 6b 20 74 68 65 |ile and |link the|
|000007f0| 20 73 70 65 63 69 66 69 | 65 64 20 74 65 73 74 63 | specifi|ed testc|
|00000800| 6f 64 65 2e 20 49 66 20 | 66 6f 75 6e 64 2c 20 69 |ode. If |found, i|
|00000810| 74 0a 64 6e 6c 20 73 65 | 74 73 20 61 6e 64 20 41 |t.dnl se|ts and A|
|00000820| 43 5f 53 55 42 53 54 73 | 20 48 41 56 45 5f 4c 49 |C_SUBSTs| HAVE_LI|
|00000830| 42 24 7b 4e 41 4d 45 7d | 3d 79 65 73 20 61 6e 64 |B${NAME}|=yes and|
|00000840| 20 74 68 65 20 4c 49 42 | 24 7b 4e 41 4d 45 7d 20 | the LIB|${NAME} |
|00000850| 61 6e 64 0a 64 6e 6c 20 | 4c 54 4c 49 42 24 7b 4e |and.dnl |LTLIB${N|
|00000860| 41 4d 45 7d 20 76 61 72 | 69 61 62 6c 65 73 20 61 |AME} var|iables a|
|00000870| 6e 64 20 61 75 67 6d 65 | 6e 74 73 20 74 68 65 20 |nd augme|nts the |
|00000880| 43 50 50 46 4c 41 47 53 | 20 76 61 72 69 61 62 6c |CPPFLAGS| variabl|
|00000890| 65 2c 20 61 6e 64 0a 64 | 6e 6c 20 23 64 65 66 69 |e, and.d|nl #defi|
|000008a0| 6e 65 73 20 48 41 56 45 | 5f 4c 49 42 24 7b 4e 41 |nes HAVE|_LIB${NA|
|000008b0| 4d 45 7d 20 74 6f 20 31 | 2e 20 4f 74 68 65 72 77 |ME} to 1|. Otherw|
|000008c0| 69 73 65 2c 20 69 74 20 | 73 65 74 73 20 61 6e 64 |ise, it |sets and|
|000008d0| 20 41 43 5f 53 55 42 53 | 54 73 0a 64 6e 6c 20 48 | AC_SUBS|Ts.dnl H|
|000008e0| 41 56 45 5f 4c 49 42 24 | 7b 4e 41 4d 45 7d 3d 6e |AVE_LIB$|{NAME}=n|
|000008f0| 6f 20 61 6e 64 20 4c 49 | 42 24 7b 4e 41 4d 45 7d |o and LI|B${NAME}|
|00000900| 20 61 6e 64 20 4c 54 4c | 49 42 24 7b 4e 41 4d 45 | and LTL|IB${NAME|
|00000910| 7d 20 74 6f 20 65 6d 70 | 74 79 2e 0a 41 43 5f 44 |} to emp|ty..AC_D|
|00000920| 45 46 55 4e 28 5b 41 43 | 5f 4c 49 42 5f 48 41 56 |EFUN([AC|_LIB_HAV|
|00000930| 45 5f 4c 49 4e 4b 46 4c | 41 47 53 5d 2c 0a 5b 0a |E_LINKFL|AGS],.[.|
|00000940| 20 20 41 43 5f 52 45 51 | 55 49 52 45 28 5b 41 43 | AC_REQ|UIRE([AC|
|00000950| 5f 4c 49 42 5f 50 52 45 | 50 41 52 45 5f 50 52 45 |_LIB_PRE|PARE_PRE|
|00000960| 46 49 58 5d 29 0a 20 20 | 41 43 5f 52 45 51 55 49 |FIX]). |AC_REQUI|
|00000970| 52 45 28 5b 41 43 5f 4c | 49 42 5f 52 50 41 54 48 |RE([AC_L|IB_RPATH|
|00000980| 5d 29 0a 20 20 64 65 66 | 69 6e 65 28 5b 4e 61 6d |]). def|ine([Nam|
|00000990| 65 5d 2c 5b 74 72 61 6e | 73 6c 69 74 28 5b 24 31 |e],[tran|slit([$1|
|000009a0| 5d 2c 5b 2e 2f 2d 5d 2c | 20 5b 5f 5f 5f 5d 29 5d |],[./-],| [___])]|
|000009b0| 29 0a 20 20 64 65 66 69 | 6e 65 28 5b 4e 41 4d 45 |). defi|ne([NAME|
|000009c0| 5d 2c 5b 74 72 61 6e 73 | 6c 69 74 28 5b 24 31 5d |],[trans|lit([$1]|
|000009d0| 2c 5b 61 62 63 64 65 66 | 67 68 69 6a 6b 6c 6d 6e |,[abcdef|ghijklmn|
|000009e0| 6f 70 71 72 73 74 75 76 | 77 78 79 7a 2e 2f 2d 5d |opqrstuv|wxyz./-]|
|000009f0| 2c 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |,. | |
|00000a00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000a10| 20 5b 41 42 43 44 45 46 | 47 48 49 4a 4b 4c 4d 4e | [ABCDEF|GHIJKLMN|
|00000a20| 4f 50 51 52 53 54 55 56 | 57 58 59 5a 5f 5f 5f 5d |OPQRSTUV|WXYZ___]|
|00000a30| 29 5d 29 0a 0a 20 20 64 | 6e 6c 20 53 65 61 72 63 |)]).. d|nl Searc|
|00000a40| 68 20 66 6f 72 20 6c 69 | 62 5b 5d 4e 61 6d 65 20 |h for li|b[]Name |
|00000a50| 61 6e 64 20 64 65 66 69 | 6e 65 20 4c 49 42 5b 5d |and defi|ne LIB[]|
|00000a60| 4e 41 4d 45 2c 20 4c 54 | 4c 49 42 5b 5d 4e 41 4d |NAME, LT|LIB[]NAM|
|00000a70| 45 20 61 6e 64 20 49 4e | 43 5b 5d 4e 41 4d 45 0a |E and IN|C[]NAME.|
|00000a80| 20 20 64 6e 6c 20 61 63 | 63 6f 72 64 69 6e 67 6c | dnl ac|cordingl|
|00000a90| 79 2e 0a 20 20 41 43 5f | 4c 49 42 5f 4c 49 4e 4b |y.. AC_|LIB_LINK|
|00000aa0| 46 4c 41 47 53 5f 42 4f | 44 59 28 5b 24 31 5d 2c |FLAGS_BO|DY([$1],|
|00000ab0| 20 5b 24 32 5d 29 0a 0a | 20 20 64 6e 6c 20 41 64 | [$2])..| dnl Ad|
|00000ac0| 64 20 24 49 4e 43 5b 5d | 4e 41 4d 45 20 74 6f 20 |d $INC[]|NAME to |
|00000ad0| 43 50 50 46 4c 41 47 53 | 20 62 65 66 6f 72 65 20 |CPPFLAGS| before |
|00000ae0| 70 65 72 66 6f 72 6d 69 | 6e 67 20 74 68 65 20 66 |performi|ng the f|
|00000af0| 6f 6c 6c 6f 77 69 6e 67 | 20 63 68 65 63 6b 73 2c |ollowing| checks,|
|00000b00| 0a 20 20 64 6e 6c 20 62 | 65 63 61 75 73 65 20 69 |. dnl b|ecause i|
|00000b10| 66 20 74 68 65 20 75 73 | 65 72 20 68 61 73 20 69 |f the us|er has i|
|00000b20| 6e 73 74 61 6c 6c 65 64 | 20 6c 69 62 5b 5d 4e 61 |nstalled| lib[]Na|
|00000b30| 6d 65 20 61 6e 64 20 6e | 6f 74 20 64 69 73 61 62 |me and n|ot disab|
|00000b40| 6c 65 64 20 69 74 73 20 | 75 73 65 0a 20 20 64 6e |led its |use. dn|
|00000b50| 6c 20 76 69 61 20 2d 2d | 77 69 74 68 6f 75 74 2d |l via --|without-|
|00000b60| 6c 69 62 5b 5d 4e 61 6d | 65 2d 70 72 65 66 69 78 |lib[]Nam|e-prefix|
|00000b70| 2c 20 68 65 20 77 61 6e | 74 73 20 74 6f 20 75 73 |, he wan|ts to us|
|00000b80| 65 20 69 74 2e 0a 20 20 | 61 63 5f 73 61 76 65 5f |e it.. |ac_save_|
|00000b90| 43 50 50 46 4c 41 47 53 | 3d 22 24 43 50 50 46 4c |CPPFLAGS|="$CPPFL|
|00000ba0| 41 47 53 22 0a 20 20 41 | 43 5f 4c 49 42 5f 41 50 |AGS". A|C_LIB_AP|
|00000bb0| 50 45 4e 44 54 4f 56 41 | 52 28 5b 43 50 50 46 4c |PENDTOVA|R([CPPFL|
|00000bc0| 41 47 53 5d 2c 20 5b 24 | 49 4e 43 5d 4e 41 4d 45 |AGS], [$|INC]NAME|
|00000bd0| 29 0a 0a 20 20 41 43 5f | 43 41 43 48 45 5f 43 48 |).. AC_|CACHE_CH|
|00000be0| 45 43 4b 28 5b 66 6f 72 | 20 6c 69 62 5b 5d 24 31 |ECK([for| lib[]$1|
|00000bf0| 5d 2c 20 5b 61 63 5f 63 | 76 5f 6c 69 62 5b 5d 4e |], [ac_c|v_lib[]N|
|00000c00| 61 6d 65 5d 2c 20 5b 0a | 20 20 20 20 61 63 5f 73 |ame], [.| ac_s|
|00000c10| 61 76 65 5f 4c 49 42 53 | 3d 22 24 4c 49 42 53 22 |ave_LIBS|="$LIBS"|
|00000c20| 0a 20 20 20 20 4c 49 42 | 53 3d 22 24 4c 49 42 53 |. LIB|S="$LIBS|
|00000c30| 20 24 4c 49 42 5b 5d 4e | 41 4d 45 22 0a 20 20 20 | $LIB[]N|AME". |
|00000c40| 20 41 43 5f 54 52 59 5f | 4c 49 4e 4b 28 5b 24 33 | AC_TRY_|LINK([$3|
|00000c50| 5d 2c 20 5b 24 34 5d 2c | 20 5b 61 63 5f 63 76 5f |], [$4],| [ac_cv_|
|00000c60| 6c 69 62 5b 5d 4e 61 6d | 65 3d 79 65 73 5d 2c 20 |lib[]Nam|e=yes], |
|00000c70| 5b 61 63 5f 63 76 5f 6c | 69 62 5b 5d 4e 61 6d 65 |[ac_cv_l|ib[]Name|
|00000c80| 3d 6e 6f 5d 29 0a 20 20 | 20 20 4c 49 42 53 3d 22 |=no]). | LIBS="|
|00000c90| 24 61 63 5f 73 61 76 65 | 5f 4c 49 42 53 22 0a 20 |$ac_save|_LIBS". |
|00000ca0| 20 5d 29 0a 20 20 69 66 | 20 74 65 73 74 20 22 24 | ]). if| test "$|
|00000cb0| 61 63 5f 63 76 5f 6c 69 | 62 5b 5d 4e 61 6d 65 22 |ac_cv_li|b[]Name"|
|00000cc0| 20 3d 20 79 65 73 3b 20 | 74 68 65 6e 0a 20 20 20 | = yes; |then. |
|00000cd0| 20 48 41 56 45 5f 4c 49 | 42 5b 5d 4e 41 4d 45 3d | HAVE_LI|B[]NAME=|
|00000ce0| 79 65 73 0a 20 20 20 20 | 41 43 5f 44 45 46 49 4e |yes. |AC_DEFIN|
|00000cf0| 45 28 5b 48 41 56 45 5f | 4c 49 42 5d 4e 41 4d 45 |E([HAVE_|LIB]NAME|
|00000d00| 2c 20 31 2c 20 5b 44 65 | 66 69 6e 65 20 69 66 20 |, 1, [De|fine if |
|00000d10| 79 6f 75 20 68 61 76 65 | 20 74 68 65 20 24 31 20 |you have| the $1 |
|00000d20| 6c 69 62 72 61 72 79 2e | 5d 29 0a 20 20 20 20 41 |library.|]). A|
|00000d30| 43 5f 4d 53 47 5f 43 48 | 45 43 4b 49 4e 47 28 5b |C_MSG_CH|ECKING([|
|00000d40| 68 6f 77 20 74 6f 20 6c | 69 6e 6b 20 77 69 74 68 |how to l|ink with|
|00000d50| 20 6c 69 62 5b 5d 24 31 | 5d 29 0a 20 20 20 20 41 | lib[]$1|]). A|
|00000d60| 43 5f 4d 53 47 5f 52 45 | 53 55 4c 54 28 5b 24 4c |C_MSG_RE|SULT([$L|
|00000d70| 49 42 5b 5d 4e 41 4d 45 | 5d 29 0a 20 20 65 6c 73 |IB[]NAME|]). els|
|00000d80| 65 0a 20 20 20 20 48 41 | 56 45 5f 4c 49 42 5b 5d |e. HA|VE_LIB[]|
|00000d90| 4e 41 4d 45 3d 6e 6f 0a | 20 20 20 20 64 6e 6c 20 |NAME=no.| dnl |
|00000da0| 49 66 20 24 4c 49 42 5b | 5d 4e 41 4d 45 20 64 69 |If $LIB[|]NAME di|
|00000db0| 64 6e 27 74 20 6c 65 61 | 64 20 74 6f 20 61 20 75 |dn't lea|d to a u|
|00000dc0| 73 61 62 6c 65 20 6c 69 | 62 72 61 72 79 2c 20 77 |sable li|brary, w|
|00000dd0| 65 20 64 6f 6e 27 74 20 | 6e 65 65 64 0a 20 20 20 |e don't |need. |
|00000de0| 20 64 6e 6c 20 24 49 4e | 43 5b 5d 4e 41 4d 45 20 | dnl $IN|C[]NAME |
|00000df0| 65 69 74 68 65 72 2e 0a | 20 20 20 20 43 50 50 46 |either..| CPPF|
|00000e00| 4c 41 47 53 3d 22 24 61 | 63 5f 73 61 76 65 5f 43 |LAGS="$a|c_save_C|
|00000e10| 50 50 46 4c 41 47 53 22 | 0a 20 20 20 20 4c 49 42 |PPFLAGS"|. LIB|
|00000e20| 5b 5d 4e 41 4d 45 3d 0a | 20 20 20 20 4c 54 4c 49 |[]NAME=.| LTLI|
|00000e30| 42 5b 5d 4e 41 4d 45 3d | 0a 20 20 66 69 0a 20 20 |B[]NAME=|. fi. |
|00000e40| 41 43 5f 53 55 42 53 54 | 28 5b 48 41 56 45 5f 4c |AC_SUBST|([HAVE_L|
|00000e50| 49 42 5d 4e 41 4d 45 29 | 0a 20 20 41 43 5f 53 55 |IB]NAME)|. AC_SU|
|00000e60| 42 53 54 28 5b 4c 49 42 | 5d 4e 41 4d 45 29 0a 20 |BST([LIB|]NAME). |
|00000e70| 20 41 43 5f 53 55 42 53 | 54 28 5b 4c 54 4c 49 42 | AC_SUBS|T([LTLIB|
|00000e80| 5d 4e 41 4d 45 29 0a 20 | 20 75 6e 64 65 66 69 6e |]NAME). | undefin|
|00000e90| 65 28 5b 4e 61 6d 65 5d | 29 0a 20 20 75 6e 64 65 |e([Name]|). unde|
|00000ea0| 66 69 6e 65 28 5b 4e 41 | 4d 45 5d 29 0a 5d 29 0a |fine([NA|ME]).]).|
|00000eb0| 0a 64 6e 6c 20 44 65 74 | 65 72 6d 69 6e 65 20 74 |.dnl Det|ermine t|
|00000ec0| 68 65 20 70 6c 61 74 66 | 6f 72 6d 20 64 65 70 65 |he platf|orm depe|
|00000ed0| 6e 64 65 6e 74 20 70 61 | 72 61 6d 65 74 65 72 73 |ndent pa|rameters|
|00000ee0| 20 6e 65 65 64 65 64 20 | 74 6f 20 75 73 65 20 72 | needed |to use r|
|00000ef0| 70 61 74 68 3a 0a 64 6e | 6c 20 6c 69 62 65 78 74 |path:.dn|l libext|
|00000f00| 2c 20 73 68 6c 69 62 65 | 78 74 2c 20 68 61 72 64 |, shlibe|xt, hard|
|00000f10| 63 6f 64 65 5f 6c 69 62 | 64 69 72 5f 66 6c 61 67 |code_lib|dir_flag|
|00000f20| 5f 73 70 65 63 2c 20 68 | 61 72 64 63 6f 64 65 5f |_spec, h|ardcode_|
|00000f30| 6c 69 62 64 69 72 5f 73 | 65 70 61 72 61 74 6f 72 |libdir_s|eparator|
|00000f40| 2c 0a 64 6e 6c 20 68 61 | 72 64 63 6f 64 65 5f 64 |,.dnl ha|rdcode_d|
|00000f50| 69 72 65 63 74 2c 20 68 | 61 72 64 63 6f 64 65 5f |irect, h|ardcode_|
|00000f60| 6d 69 6e 75 73 5f 4c 2c | 0a 64 6e 6c 20 73 79 73 |minus_L,|.dnl sys|
|00000f70| 5f 6c 69 62 5f 73 65 61 | 72 63 68 5f 70 61 74 68 |_lib_sea|rch_path|
|00000f80| 5f 73 70 65 63 2c 20 73 | 79 73 5f 6c 69 62 5f 64 |_spec, s|ys_lib_d|
|00000f90| 6c 73 65 61 72 63 68 5f | 70 61 74 68 5f 73 70 65 |lsearch_|path_spe|
|00000fa0| 63 2e 0a 41 43 5f 44 45 | 46 55 4e 28 5b 41 43 5f |c..AC_DE|FUN([AC_|
|00000fb0| 4c 49 42 5f 52 50 41 54 | 48 5d 2c 0a 5b 0a 20 20 |LIB_RPAT|H],.[. |
|00000fc0| 41 43 5f 52 45 51 55 49 | 52 45 28 5b 41 43 5f 50 |AC_REQUI|RE([AC_P|
|00000fd0| 52 4f 47 5f 43 43 5d 29 | 20 20 20 20 20 20 20 20 |ROG_CC])| |
|00000fe0| 20 20 20 20 20 20 20 20 | 64 6e 6c 20 77 65 20 75 | |dnl we u|
|00000ff0| 73 65 20 24 43 43 2c 20 | 24 47 43 43 2c 20 24 4c |se $CC, |$GCC, $L|
|00001000| 44 46 4c 41 47 53 0a 20 | 20 41 43 5f 52 45 51 55 |DFLAGS. | AC_REQU|
|00001010| 49 52 45 28 5b 41 43 5f | 4c 49 42 5f 50 52 4f 47 |IRE([AC_|LIB_PROG|
|00001020| 5f 4c 44 5d 29 20 20 20 | 20 20 20 20 20 20 20 20 |_LD]) | |
|00001030| 20 64 6e 6c 20 77 65 20 | 75 73 65 20 24 4c 44 2c | dnl we |use $LD,|
|00001040| 20 24 77 69 74 68 5f 67 | 6e 75 5f 6c 64 0a 20 20 | $with_g|nu_ld. |
|00001050| 41 43 5f 52 45 51 55 49 | 52 45 28 5b 41 43 5f 43 |AC_REQUI|RE([AC_C|
|00001060| 41 4e 4f 4e 49 43 41 4c | 5f 48 4f 53 54 5d 29 20 |ANONICAL|_HOST]) |
|00001070| 20 20 20 20 20 20 20 20 | 64 6e 6c 20 77 65 20 75 | |dnl we u|
|00001080| 73 65 20 24 68 6f 73 74 | 0a 20 20 41 43 5f 52 45 |se $host|. AC_RE|
|00001090| 51 55 49 52 45 28 5b 41 | 43 5f 43 4f 4e 46 49 47 |QUIRE([A|C_CONFIG|
|000010a0| 5f 41 55 58 5f 44 49 52 | 5f 44 45 46 41 55 4c 54 |_AUX_DIR|_DEFAULT|
|000010b0| 5d 29 20 64 6e 6c 20 77 | 65 20 75 73 65 20 24 61 |]) dnl w|e use $a|
|000010c0| 63 5f 61 75 78 5f 64 69 | 72 0a 20 20 41 43 5f 43 |c_aux_di|r. AC_C|
|000010d0| 41 43 48 45 5f 43 48 45 | 43 4b 28 5b 66 6f 72 20 |ACHE_CHE|CK([for |
|000010e0| 73 68 61 72 65 64 20 6c | 69 62 72 61 72 79 20 72 |shared l|ibrary r|
|000010f0| 75 6e 20 70 61 74 68 20 | 6f 72 69 67 69 6e 5d 2c |un path |origin],|
|00001100| 20 61 63 6c 5f 63 76 5f | 72 70 61 74 68 2c 20 5b | acl_cv_|rpath, [|
|00001110| 0a 20 20 20 20 43 43 3d | 22 24 43 43 22 20 47 43 |. CC=|"$CC" GC|
|00001120| 43 3d 22 24 47 43 43 22 | 20 4c 44 46 4c 41 47 53 |C="$GCC"| LDFLAGS|
|00001130| 3d 22 24 4c 44 46 4c 41 | 47 53 22 20 4c 44 3d 22 |="$LDFLA|GS" LD="|
|00001140| 24 4c 44 22 20 77 69 74 | 68 5f 67 6e 75 5f 6c 64 |$LD" wit|h_gnu_ld|
|00001150| 3d 22 24 77 69 74 68 5f | 67 6e 75 5f 6c 64 22 20 |="$with_|gnu_ld" |
|00001160| 5c 0a 20 20 20 20 24 7b | 43 4f 4e 46 49 47 5f 53 |\. ${|CONFIG_S|
|00001170| 48 45 4c 4c 2d 2f 62 69 | 6e 2f 73 68 7d 20 22 24 |HELL-/bi|n/sh} "$|
|00001180| 61 63 5f 61 75 78 5f 64 | 69 72 2f 63 6f 6e 66 69 |ac_aux_d|ir/confi|
|00001190| 67 2e 72 70 61 74 68 22 | 20 22 24 68 6f 73 74 22 |g.rpath"| "$host"|
|000011a0| 20 3e 20 63 6f 6e 66 74 | 65 73 74 2e 73 68 0a 20 | > conft|est.sh. |
|000011b0| 20 20 20 2e 20 2e 2f 63 | 6f 6e 66 74 65 73 74 2e | . ./c|onftest.|
|000011c0| 73 68 0a 20 20 20 20 72 | 6d 20 2d 66 20 2e 2f 63 |sh. r|m -f ./c|
|000011d0| 6f 6e 66 74 65 73 74 2e | 73 68 0a 20 20 20 20 61 |onftest.|sh. a|
|000011e0| 63 6c 5f 63 76 5f 72 70 | 61 74 68 3d 64 6f 6e 65 |cl_cv_rp|ath=done|
|000011f0| 0a 20 20 5d 29 0a 20 20 | 77 6c 3d 22 24 61 63 6c |. ]). |wl="$acl|
|00001200| 5f 63 76 5f 77 6c 22 0a | 20 20 6c 69 62 65 78 74 |_cv_wl".| libext|
|00001210| 3d 22 24 61 63 6c 5f 63 | 76 5f 6c 69 62 65 78 74 |="$acl_c|v_libext|
|00001220| 22 0a 20 20 73 68 6c 69 | 62 65 78 74 3d 22 24 61 |". shli|bext="$a|
|00001230| 63 6c 5f 63 76 5f 73 68 | 6c 69 62 65 78 74 22 0a |cl_cv_sh|libext".|
|00001240| 20 20 68 61 72 64 63 6f | 64 65 5f 6c 69 62 64 69 | hardco|de_libdi|
|00001250| 72 5f 66 6c 61 67 5f 73 | 70 65 63 3d 22 24 61 63 |r_flag_s|pec="$ac|
|00001260| 6c 5f 63 76 5f 68 61 72 | 64 63 6f 64 65 5f 6c 69 |l_cv_har|dcode_li|
|00001270| 62 64 69 72 5f 66 6c 61 | 67 5f 73 70 65 63 22 0a |bdir_fla|g_spec".|
|00001280| 20 20 68 61 72 64 63 6f | 64 65 5f 6c 69 62 64 69 | hardco|de_libdi|
|00001290| 72 5f 73 65 70 61 72 61 | 74 6f 72 3d 22 24 61 63 |r_separa|tor="$ac|
|000012a0| 6c 5f 63 76 5f 68 61 72 | 64 63 6f 64 65 5f 6c 69 |l_cv_har|dcode_li|
|000012b0| 62 64 69 72 5f 73 65 70 | 61 72 61 74 6f 72 22 0a |bdir_sep|arator".|
|000012c0| 20 20 68 61 72 64 63 6f | 64 65 5f 64 69 72 65 63 | hardco|de_direc|
|000012d0| 74 3d 22 24 61 63 6c 5f | 63 76 5f 68 61 72 64 63 |t="$acl_|cv_hardc|
|000012e0| 6f 64 65 5f 64 69 72 65 | 63 74 22 0a 20 20 68 61 |ode_dire|ct". ha|
|000012f0| 72 64 63 6f 64 65 5f 6d | 69 6e 75 73 5f 4c 3d 22 |rdcode_m|inus_L="|
|00001300| 24 61 63 6c 5f 63 76 5f | 68 61 72 64 63 6f 64 65 |$acl_cv_|hardcode|
|00001310| 5f 6d 69 6e 75 73 5f 4c | 22 0a 20 20 73 79 73 5f |_minus_L|". sys_|
|00001320| 6c 69 62 5f 73 65 61 72 | 63 68 5f 70 61 74 68 5f |lib_sear|ch_path_|
|00001330| 73 70 65 63 3d 22 24 61 | 63 6c 5f 63 76 5f 73 79 |spec="$a|cl_cv_sy|
|00001340| 73 5f 6c 69 62 5f 73 65 | 61 72 63 68 5f 70 61 74 |s_lib_se|arch_pat|
|00001350| 68 5f 73 70 65 63 22 0a | 20 20 73 79 73 5f 6c 69 |h_spec".| sys_li|
|00001360| 62 5f 64 6c 73 65 61 72 | 63 68 5f 70 61 74 68 5f |b_dlsear|ch_path_|
|00001370| 73 70 65 63 3d 22 24 61 | 63 6c 5f 63 76 5f 73 79 |spec="$a|cl_cv_sy|
|00001380| 73 5f 6c 69 62 5f 64 6c | 73 65 61 72 63 68 5f 70 |s_lib_dl|search_p|
|00001390| 61 74 68 5f 73 70 65 63 | 22 0a 5d 29 0a 0a 64 6e |ath_spec|".])..dn|
|000013a0| 6c 20 41 43 5f 4c 49 42 | 5f 4c 49 4e 4b 46 4c 41 |l AC_LIB|_LINKFLA|
|000013b0| 47 53 5f 42 4f 44 59 28 | 6e 61 6d 65 20 5b 2c 20 |GS_BODY(|name [, |
|000013c0| 64 65 70 65 6e 64 65 6e | 63 69 65 73 5d 29 20 73 |dependen|cies]) s|
|000013d0| 65 61 72 63 68 65 73 20 | 66 6f 72 20 6c 69 62 6e |earches |for libn|
|000013e0| 61 6d 65 20 61 6e 64 0a | 64 6e 6c 20 74 68 65 20 |ame and.|dnl the |
|000013f0| 6c 69 62 72 61 72 69 65 | 73 20 63 6f 72 72 65 73 |librarie|s corres|
|00001400| 70 6f 6e 64 69 6e 67 20 | 74 6f 20 65 78 70 6c 69 |ponding |to expli|
|00001410| 63 69 74 20 61 6e 64 20 | 69 6d 70 6c 69 63 69 74 |cit and |implicit|
|00001420| 20 64 65 70 65 6e 64 65 | 6e 63 69 65 73 2e 0a 64 | depende|ncies..d|
|00001430| 6e 6c 20 53 65 74 73 20 | 74 68 65 20 4c 49 42 24 |nl Sets |the LIB$|
|00001440| 7b 4e 41 4d 45 7d 2c 20 | 4c 54 4c 49 42 24 7b 4e |{NAME}, |LTLIB${N|
|00001450| 41 4d 45 7d 20 61 6e 64 | 20 49 4e 43 24 7b 4e 41 |AME} and| INC${NA|
|00001460| 4d 45 7d 20 76 61 72 69 | 61 62 6c 65 73 2e 0a 41 |ME} vari|ables..A|
|00001470| 43 5f 44 45 46 55 4e 28 | 5b 41 43 5f 4c 49 42 5f |C_DEFUN(|[AC_LIB_|
|00001480| 4c 49 4e 4b 46 4c 41 47 | 53 5f 42 4f 44 59 5d 2c |LINKFLAG|S_BODY],|
|00001490| 0a 5b 0a 20 20 64 65 66 | 69 6e 65 28 5b 4e 41 4d |.[. def|ine([NAM|
|000014a0| 45 5d 2c 5b 74 72 61 6e | 73 6c 69 74 28 5b 24 31 |E],[tran|slit([$1|
|000014b0| 5d 2c 5b 61 62 63 64 65 | 66 67 68 69 6a 6b 6c 6d |],[abcde|fghijklm|
|000014c0| 6e 6f 70 71 72 73 74 75 | 76 77 78 79 7a 2e 2f 2d |nopqrstu|vwxyz./-|
|000014d0| 5d 2c 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |],. | |
|000014e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000014f0| 20 20 5b 41 42 43 44 45 | 46 47 48 49 4a 4b 4c 4d | [ABCDE|FGHIJKLM|
|00001500| 4e 4f 50 51 52 53 54 55 | 56 57 58 59 5a 5f 5f 5f |NOPQRSTU|VWXYZ___|
|00001510| 5d 29 5d 29 0a 20 20 64 | 6e 6c 20 42 79 20 64 65 |])]). d|nl By de|
|00001520| 66 61 75 6c 74 2c 20 6c | 6f 6f 6b 20 69 6e 20 24 |fault, l|ook in $|
|00001530| 69 6e 63 6c 75 64 65 64 | 69 72 20 61 6e 64 20 24 |included|ir and $|
|00001540| 6c 69 62 64 69 72 2e 0a | 20 20 75 73 65 5f 61 64 |libdir..| use_ad|
|00001550| 64 69 74 69 6f 6e 61 6c | 3d 79 65 73 0a 20 20 41 |ditional|=yes. A|
|00001560| 43 5f 4c 49 42 5f 57 49 | 54 48 5f 46 49 4e 41 4c |C_LIB_WI|TH_FINAL|
|00001570| 5f 50 52 45 46 49 58 28 | 5b 0a 20 20 20 20 65 76 |_PREFIX(|[. ev|
|00001580| 61 6c 20 61 64 64 69 74 | 69 6f 6e 61 6c 5f 69 6e |al addit|ional_in|
|00001590| 63 6c 75 64 65 64 69 72 | 3d 5c 22 24 69 6e 63 6c |cludedir|=\"$incl|
|000015a0| 75 64 65 64 69 72 5c 22 | 0a 20 20 20 20 65 76 61 |udedir\"|. eva|
|000015b0| 6c 20 61 64 64 69 74 69 | 6f 6e 61 6c 5f 6c 69 62 |l additi|onal_lib|
|000015c0| 64 69 72 3d 5c 22 24 6c | 69 62 64 69 72 5c 22 0a |dir=\"$l|ibdir\".|
|000015d0| 20 20 5d 29 0a 20 20 41 | 43 5f 41 52 47 5f 57 49 | ]). A|C_ARG_WI|
|000015e0| 54 48 28 5b 6c 69 62 24 | 31 2d 70 72 65 66 69 78 |TH([lib$|1-prefix|
|000015f0| 5d 2c 0a 5b 20 20 2d 2d | 77 69 74 68 2d 6c 69 62 |],.[ --|with-lib|
|00001600| 24 31 2d 70 72 65 66 69 | 78 5b 3d 44 49 52 5d 20 |$1-prefi|x[=DIR] |
|00001610| 20 73 65 61 72 63 68 20 | 66 6f 72 20 6c 69 62 24 | search |for lib$|
|00001620| 31 20 69 6e 20 44 49 52 | 2f 69 6e 63 6c 75 64 65 |1 in DIR|/include|
|00001630| 20 61 6e 64 20 44 49 52 | 2f 6c 69 62 0a 20 20 2d | and DIR|/lib. -|
|00001640| 2d 77 69 74 68 6f 75 74 | 2d 6c 69 62 24 31 2d 70 |-without|-lib$1-p|
|00001650| 72 65 66 69 78 20 20 20 | 20 20 64 6f 6e 27 74 20 |refix | don't |
|00001660| 73 65 61 72 63 68 20 66 | 6f 72 20 6c 69 62 24 31 |search f|or lib$1|
|00001670| 20 69 6e 20 69 6e 63 6c | 75 64 65 64 69 72 20 61 | in incl|udedir a|
|00001680| 6e 64 20 6c 69 62 64 69 | 72 5d 2c 0a 5b 0a 20 20 |nd libdi|r],.[. |
|00001690| 20 20 69 66 20 74 65 73 | 74 20 22 58 24 77 69 74 | if tes|t "X$wit|
|000016a0| 68 76 61 6c 22 20 3d 20 | 22 58 6e 6f 22 3b 20 74 |hval" = |"Xno"; t|
|000016b0| 68 65 6e 0a 20 20 20 20 | 20 20 75 73 65 5f 61 64 |hen. | use_ad|
|000016c0| 64 69 74 69 6f 6e 61 6c | 3d 6e 6f 0a 20 20 20 20 |ditional|=no. |
|000016d0| 65 6c 73 65 0a 20 20 20 | 20 20 20 69 66 20 74 65 |else. | if te|
|000016e0| 73 74 20 22 58 24 77 69 | 74 68 76 61 6c 22 20 3d |st "X$wi|thval" =|
|000016f0| 20 22 58 22 3b 20 74 68 | 65 6e 0a 20 20 20 20 20 | "X"; th|en. |
|00001700| 20 20 20 41 43 5f 4c 49 | 42 5f 57 49 54 48 5f 46 | AC_LI|B_WITH_F|
|00001710| 49 4e 41 4c 5f 50 52 45 | 46 49 58 28 5b 0a 20 20 |INAL_PRE|FIX([. |
|00001720| 20 20 20 20 20 20 20 20 | 65 76 61 6c 20 61 64 64 | |eval add|
|00001730| 69 74 69 6f 6e 61 6c 5f | 69 6e 63 6c 75 64 65 64 |itional_|included|
|00001740| 69 72 3d 5c 22 24 69 6e | 63 6c 75 64 65 64 69 72 |ir=\"$in|cludedir|
|00001750| 5c 22 0a 20 20 20 20 20 | 20 20 20 20 20 65 76 61 |\". | eva|
|00001760| 6c 20 61 64 64 69 74 69 | 6f 6e 61 6c 5f 6c 69 62 |l additi|onal_lib|
|00001770| 64 69 72 3d 5c 22 24 6c | 69 62 64 69 72 5c 22 0a |dir=\"$l|ibdir\".|
|00001780| 20 20 20 20 20 20 20 20 | 5d 29 0a 20 20 20 20 20 | |]). |
|00001790| 20 65 6c 73 65 0a 20 20 | 20 20 20 20 20 20 61 64 | else. | ad|
|000017a0| 64 69 74 69 6f 6e 61 6c | 5f 69 6e 63 6c 75 64 65 |ditional|_include|
|000017b0| 64 69 72 3d 22 24 77 69 | 74 68 76 61 6c 2f 69 6e |dir="$wi|thval/in|
|000017c0| 63 6c 75 64 65 22 0a 20 | 20 20 20 20 20 20 20 61 |clude". | a|
|000017d0| 64 64 69 74 69 6f 6e 61 | 6c 5f 6c 69 62 64 69 72 |dditiona|l_libdir|
|000017e0| 3d 22 24 77 69 74 68 76 | 61 6c 2f 6c 69 62 22 0a |="$withv|al/lib".|
|000017f0| 20 20 20 20 20 20 66 69 | 0a 20 20 20 20 66 69 0a | fi|. fi.|
|00001800| 5d 29 0a 20 20 64 6e 6c | 20 53 65 61 72 63 68 20 |]). dnl| Search |
|00001810| 74 68 65 20 6c 69 62 72 | 61 72 79 20 61 6e 64 20 |the libr|ary and |
|00001820| 69 74 73 20 64 65 70 65 | 6e 64 65 6e 63 69 65 73 |its depe|ndencies|
|00001830| 20 69 6e 20 24 61 64 64 | 69 74 69 6f 6e 61 6c 5f | in $add|itional_|
|00001840| 6c 69 62 64 69 72 20 61 | 6e 64 0a 20 20 64 6e 6c |libdir a|nd. dnl|
|00001850| 20 24 4c 44 46 4c 41 47 | 53 2e 20 55 73 69 6e 67 | $LDFLAG|S. Using|
|00001860| 20 62 72 65 61 64 74 68 | 2d 66 69 72 73 74 2d 73 | breadth|-first-s|
|00001870| 65 61 63 68 2e 0a 20 20 | 4c 49 42 5b 5d 4e 41 4d |each.. |LIB[]NAM|
|00001880| 45 3d 0a 20 20 4c 54 4c | 49 42 5b 5d 4e 41 4d 45 |E=. LTL|IB[]NAME|
|00001890| 3d 0a 20 20 49 4e 43 5b | 5d 4e 41 4d 45 3d 0a 20 |=. INC[|]NAME=. |
|000018a0| 20 72 70 61 74 68 64 69 | 72 73 3d 0a 20 20 6c 74 | rpathdi|rs=. lt|
|000018b0| 72 70 61 74 68 64 69 72 | 73 3d 0a 20 20 6e 61 6d |rpathdir|s=. nam|
|000018c0| 65 73 5f 61 6c 72 65 61 | 64 79 5f 68 61 6e 64 6c |es_alrea|dy_handl|
|000018d0| 65 64 3d 0a 20 20 6e 61 | 6d 65 73 5f 6e 65 78 74 |ed=. na|mes_next|
|000018e0| 5f 72 6f 75 6e 64 3d 27 | 24 31 20 24 32 27 0a 20 |_round='|$1 $2'. |
|000018f0| 20 77 68 69 6c 65 20 74 | 65 73 74 20 2d 6e 20 22 | while t|est -n "|
|00001900| 24 6e 61 6d 65 73 5f 6e | 65 78 74 5f 72 6f 75 6e |$names_n|ext_roun|
|00001910| 64 22 3b 20 64 6f 0a 20 | 20 20 20 6e 61 6d 65 73 |d"; do. | names|
|00001920| 5f 74 68 69 73 5f 72 6f | 75 6e 64 3d 22 24 6e 61 |_this_ro|und="$na|
|00001930| 6d 65 73 5f 6e 65 78 74 | 5f 72 6f 75 6e 64 22 0a |mes_next|_round".|
|00001940| 20 20 20 20 6e 61 6d 65 | 73 5f 6e 65 78 74 5f 72 | name|s_next_r|
|00001950| 6f 75 6e 64 3d 0a 20 20 | 20 20 66 6f 72 20 6e 61 |ound=. | for na|
|00001960| 6d 65 20 69 6e 20 24 6e | 61 6d 65 73 5f 74 68 69 |me in $n|ames_thi|
|00001970| 73 5f 72 6f 75 6e 64 3b | 20 64 6f 0a 20 20 20 20 |s_round;| do. |
|00001980| 20 20 61 6c 72 65 61 64 | 79 5f 68 61 6e 64 6c 65 | alread|y_handle|
|00001990| 64 3d 0a 20 20 20 20 20 | 20 66 6f 72 20 6e 20 69 |d=. | for n i|
|000019a0| 6e 20 24 6e 61 6d 65 73 | 5f 61 6c 72 65 61 64 79 |n $names|_already|
|000019b0| 5f 68 61 6e 64 6c 65 64 | 3b 20 64 6f 0a 20 20 20 |_handled|; do. |
|000019c0| 20 20 20 20 20 69 66 20 | 74 65 73 74 20 22 24 6e | if |test "$n|
|000019d0| 22 20 3d 20 22 24 6e 61 | 6d 65 22 3b 20 74 68 65 |" = "$na|me"; the|
|000019e0| 6e 0a 20 20 20 20 20 20 | 20 20 20 20 61 6c 72 65 |n. | alre|
|000019f0| 61 64 79 5f 68 61 6e 64 | 6c 65 64 3d 79 65 73 0a |ady_hand|led=yes.|
|00001a00| 20 20 20 20 20 20 20 20 | 20 20 62 72 65 61 6b 0a | | break.|
|00001a10| 20 20 20 20 20 20 20 20 | 66 69 0a 20 20 20 20 20 | |fi. |
|00001a20| 20 64 6f 6e 65 0a 20 20 | 20 20 20 20 69 66 20 74 | done. | if t|
|00001a30| 65 73 74 20 2d 7a 20 22 | 24 61 6c 72 65 61 64 79 |est -z "|$already|
|00001a40| 5f 68 61 6e 64 6c 65 64 | 22 3b 20 74 68 65 6e 0a |_handled|"; then.|
|00001a50| 20 20 20 20 20 20 20 20 | 6e 61 6d 65 73 5f 61 6c | |names_al|
|00001a60| 72 65 61 64 79 5f 68 61 | 6e 64 6c 65 64 3d 22 24 |ready_ha|ndled="$|
|00001a70| 6e 61 6d 65 73 5f 61 6c | 72 65 61 64 79 5f 68 61 |names_al|ready_ha|
|00001a80| 6e 64 6c 65 64 20 24 6e | 61 6d 65 22 0a 20 20 20 |ndled $n|ame". |
|00001a90| 20 20 20 20 20 64 6e 6c | 20 53 65 65 20 69 66 20 | dnl| See if |
|00001aa0| 69 74 20 77 61 73 20 61 | 6c 72 65 61 64 79 20 6c |it was a|lready l|
|00001ab0| 6f 63 61 74 65 64 20 62 | 79 20 61 6e 20 65 61 72 |ocated b|y an ear|
|00001ac0| 6c 69 65 72 20 41 43 5f | 4c 49 42 5f 4c 49 4e 4b |lier AC_|LIB_LINK|
|00001ad0| 46 4c 41 47 53 0a 20 20 | 20 20 20 20 20 20 64 6e |FLAGS. | dn|
|00001ae0| 6c 20 6f 72 20 41 43 5f | 4c 49 42 5f 48 41 56 45 |l or AC_|LIB_HAVE|
|00001af0| 5f 4c 49 4e 4b 46 4c 41 | 47 53 20 63 61 6c 6c 2e |_LINKFLA|GS call.|
|00001b00| 0a 20 20 20 20 20 20 20 | 20 75 70 70 65 72 6e 61 |. | upperna|
|00001b10| 6d 65 3d 60 65 63 68 6f | 20 22 24 6e 61 6d 65 22 |me=`echo| "$name"|
|00001b20| 20 7c 20 73 65 64 20 2d | 65 20 27 79 7c 61 62 63 | | sed -|e 'y|abc|
|00001b30| 64 65 66 67 68 69 6a 6b | 6c 6d 6e 6f 70 71 72 73 |defghijk|lmnopqrs|
|00001b40| 74 75 76 77 78 79 7a 2e | 2f 2d 7c 41 42 43 44 45 |tuvwxyz.|/-|ABCDE|
|00001b50| 46 47 48 49 4a 4b 4c 4d | 4e 4f 50 51 52 53 54 55 |FGHIJKLM|NOPQRSTU|
|00001b60| 56 57 58 59 5a 5f 5f 5f | 7c 27 60 0a 20 20 20 20 |VWXYZ___||'`. |
|00001b70| 20 20 20 20 65 76 61 6c | 20 76 61 6c 75 65 3d 5c | eval| value=\|
|00001b80| 22 5c 24 48 41 56 45 5f | 4c 49 42 24 75 70 70 65 |"\$HAVE_|LIB$uppe|
|00001b90| 72 6e 61 6d 65 5c 22 0a | 20 20 20 20 20 20 20 20 |rname\".| |
|00001ba0| 69 66 20 74 65 73 74 20 | 2d 6e 20 22 24 76 61 6c |if test |-n "$val|
|00001bb0| 75 65 22 3b 20 74 68 65 | 6e 0a 20 20 20 20 20 20 |ue"; the|n. |
|00001bc0| 20 20 20 20 69 66 20 74 | 65 73 74 20 22 24 76 61 | if t|est "$va|
|00001bd0| 6c 75 65 22 20 3d 20 79 | 65 73 3b 20 74 68 65 6e |lue" = y|es; then|
|00001be0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 65 76 61 |. | eva|
|00001bf0| 6c 20 76 61 6c 75 65 3d | 5c 22 5c 24 4c 49 42 24 |l value=|\"\$LIB$|
|00001c00| 75 70 70 65 72 6e 61 6d | 65 5c 22 0a 20 20 20 20 |uppernam|e\". |
|00001c10| 20 20 20 20 20 20 20 20 | 74 65 73 74 20 2d 7a 20 | |test -z |
|00001c20| 22 24 76 61 6c 75 65 22 | 20 7c 7c 20 4c 49 42 5b |"$value"| || LIB[|
|00001c30| 5d 4e 41 4d 45 3d 22 24 | 7b 4c 49 42 5b 5d 4e 41 |]NAME="$|{LIB[]NA|
|00001c40| 4d 45 7d 24 7b 4c 49 42 | 5b 5d 4e 41 4d 45 3a 2b |ME}${LIB|[]NAME:+|
|00001c50| 20 7d 24 76 61 6c 75 65 | 22 0a 20 20 20 20 20 20 | }$value|". |
|00001c60| 20 20 20 20 20 20 65 76 | 61 6c 20 76 61 6c 75 65 | ev|al value|
|00001c70| 3d 5c 22 5c 24 4c 54 4c | 49 42 24 75 70 70 65 72 |=\"\$LTL|IB$upper|
|00001c80| 6e 61 6d 65 5c 22 0a 20 | 20 20 20 20 20 20 20 20 |name\". | |
|00001c90| 20 20 20 74 65 73 74 20 | 2d 7a 20 22 24 76 61 6c | test |-z "$val|
|00001ca0| 75 65 22 20 7c 7c 20 4c | 54 4c 49 42 5b 5d 4e 41 |ue" || L|TLIB[]NA|
|00001cb0| 4d 45 3d 22 24 7b 4c 54 | 4c 49 42 5b 5d 4e 41 4d |ME="${LT|LIB[]NAM|
|00001cc0| 45 7d 24 7b 4c 54 4c 49 | 42 5b 5d 4e 41 4d 45 3a |E}${LTLI|B[]NAME:|
|00001cd0| 2b 20 7d 24 76 61 6c 75 | 65 22 0a 20 20 20 20 20 |+ }$valu|e". |
|00001ce0| 20 20 20 20 20 65 6c 73 | 65 0a 20 20 20 20 20 20 | els|e. |
|00001cf0| 20 20 20 20 20 20 64 6e | 6c 20 41 6e 20 65 61 72 | dn|l An ear|
|00001d00| 6c 69 65 72 20 63 61 6c | 6c 20 74 6f 20 41 43 5f |lier cal|l to AC_|
|00001d10| 4c 49 42 5f 48 41 56 45 | 5f 4c 49 4e 4b 46 4c 41 |LIB_HAVE|_LINKFLA|
|00001d20| 47 53 20 68 61 73 20 64 | 65 74 65 72 6d 69 6e 65 |GS has d|etermine|
|00001d30| 64 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 64 6e |d. | dn|
|00001d40| 6c 20 74 68 61 74 20 74 | 68 69 73 20 6c 69 62 72 |l that t|his libr|
|00001d50| 61 72 79 20 64 6f 65 73 | 6e 27 74 20 65 78 69 73 |ary does|n't exis|
|00001d60| 74 2e 20 53 6f 20 6a 75 | 73 74 20 64 72 6f 70 20 |t. So ju|st drop |
|00001d70| 69 74 2e 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |it.. | |
|00001d80| 3a 0a 20 20 20 20 20 20 | 20 20 20 20 66 69 0a 20 |:. | fi. |
|00001d90| 20 20 20 20 20 20 20 65 | 6c 73 65 0a 20 20 20 20 | e|lse. |
|00001da0| 20 20 20 20 20 20 64 6e | 6c 20 53 65 61 72 63 68 | dn|l Search|
|00001db0| 20 74 68 65 20 6c 69 62 | 72 61 72 79 20 6c 69 62 | the lib|rary lib|
|00001dc0| 24 6e 61 6d 65 20 69 6e | 20 24 61 64 64 69 74 69 |$name in| $additi|
|00001dd0| 6f 6e 61 6c 5f 6c 69 62 | 64 69 72 20 61 6e 64 20 |onal_lib|dir and |
|00001de0| 24 4c 44 46 4c 41 47 53 | 0a 20 20 20 20 20 20 20 |$LDFLAGS|. |
|00001df0| 20 20 20 64 6e 6c 20 61 | 6e 64 20 74 68 65 20 61 | dnl a|nd the a|
|00001e00| 6c 72 65 61 64 79 20 63 | 6f 6e 73 74 72 75 63 74 |lready c|onstruct|
|00001e10| 65 64 20 24 4c 49 42 4e | 41 4d 45 2f 24 4c 54 4c |ed $LIBN|AME/$LTL|
|00001e20| 49 42 4e 41 4d 45 2e 0a | 20 20 20 20 20 20 20 20 |IBNAME..| |
|00001e30| 20 20 66 6f 75 6e 64 5f | 64 69 72 3d 0a 20 20 20 | found_|dir=. |
|00001e40| 20 20 20 20 20 20 20 66 | 6f 75 6e 64 5f 6c 61 3d | f|ound_la=|
|00001e50| 0a 20 20 20 20 20 20 20 | 20 20 20 66 6f 75 6e 64 |. | found|
|00001e60| 5f 73 6f 3d 0a 20 20 20 | 20 20 20 20 20 20 20 66 |_so=. | f|
|00001e70| 6f 75 6e 64 5f 61 3d 0a | 20 20 20 20 20 20 20 20 |ound_a=.| |
|00001e80| 20 20 69 66 20 74 65 73 | 74 20 24 75 73 65 5f 61 | if tes|t $use_a|
|00001e90| 64 64 69 74 69 6f 6e 61 | 6c 20 3d 20 79 65 73 3b |dditiona|l = yes;|
|00001ea0| 20 74 68 65 6e 0a 20 20 | 20 20 20 20 20 20 20 20 | then. | |
|00001eb0| 20 20 69 66 20 74 65 73 | 74 20 2d 6e 20 22 24 73 | if tes|t -n "$s|
|00001ec0| 68 6c 69 62 65 78 74 22 | 20 26 26 20 74 65 73 74 |hlibext"| && test|
|00001ed0| 20 2d 66 20 22 24 61 64 | 64 69 74 69 6f 6e 61 6c | -f "$ad|ditional|
|00001ee0| 5f 6c 69 62 64 69 72 2f | 6c 69 62 24 6e 61 6d 65 |_libdir/|lib$name|
|00001ef0| 2e 24 73 68 6c 69 62 65 | 78 74 22 3b 20 74 68 65 |.$shlibe|xt"; the|
|00001f00| 6e 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |n. | |
|00001f10| 66 6f 75 6e 64 5f 64 69 | 72 3d 22 24 61 64 64 69 |found_di|r="$addi|
|00001f20| 74 69 6f 6e 61 6c 5f 6c | 69 62 64 69 72 22 0a 20 |tional_l|ibdir". |
|00001f30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 66 6f 75 | | fou|
|00001f40| 6e 64 5f 73 6f 3d 22 24 | 61 64 64 69 74 69 6f 6e |nd_so="$|addition|
|00001f50| 61 6c 5f 6c 69 62 64 69 | 72 2f 6c 69 62 24 6e 61 |al_libdi|r/lib$na|
|00001f60| 6d 65 2e 24 73 68 6c 69 | 62 65 78 74 22 0a 20 20 |me.$shli|bext". |
|00001f70| 20 20 20 20 20 20 20 20 | 20 20 20 20 69 66 20 74 | | if t|
|00001f80| 65 73 74 20 2d 66 20 22 | 24 61 64 64 69 74 69 6f |est -f "|$additio|
|00001f90| 6e 61 6c 5f 6c 69 62 64 | 69 72 2f 6c 69 62 24 6e |nal_libd|ir/lib$n|
|00001fa0| 61 6d 65 2e 6c 61 22 3b | 20 74 68 65 6e 0a 20 20 |ame.la";| then. |
|00001fb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 66 6f | | fo|
|00001fc0| 75 6e 64 5f 6c 61 3d 22 | 24 61 64 64 69 74 69 6f |und_la="|$additio|
|00001fd0| 6e 61 6c 5f 6c 69 62 64 | 69 72 2f 6c 69 62 24 6e |nal_libd|ir/lib$n|
|00001fe0| 61 6d 65 2e 6c 61 22 0a | 20 20 20 20 20 20 20 20 |ame.la".| |
|00001ff0| 20 20 20 20 20 20 66 69 | 0a 20 20 20 20 20 20 20 | fi|. |
|00002000| 20 20 20 20 20 65 6c 73 | 65 0a 20 20 20 20 20 20 | els|e. |
|00002010| 20 20 20 20 20 20 20 20 | 69 66 20 74 65 73 74 20 | |if test |
|00002020| 2d 66 20 22 24 61 64 64 | 69 74 69 6f 6e 61 6c 5f |-f "$add|itional_|
|00002030| 6c 69 62 64 69 72 2f 6c | 69 62 24 6e 61 6d 65 2e |libdir/l|ib$name.|
|00002040| 24 6c 69 62 65 78 74 22 | 3b 20 74 68 65 6e 0a 20 |$libext"|; then. |
|00002050| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 66 | | f|
|00002060| 6f 75 6e 64 5f 64 69 72 | 3d 22 24 61 64 64 69 74 |ound_dir|="$addit|
|00002070| 69 6f 6e 61 6c 5f 6c 69 | 62 64 69 72 22 0a 20 20 |ional_li|bdir". |
|00002080| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 66 6f | | fo|
|00002090| 75 6e 64 5f 61 3d 22 24 | 61 64 64 69 74 69 6f 6e |und_a="$|addition|
|000020a0| 61 6c 5f 6c 69 62 64 69 | 72 2f 6c 69 62 24 6e 61 |al_libdi|r/lib$na|
|000020b0| 6d 65 2e 24 6c 69 62 65 | 78 74 22 0a 20 20 20 20 |me.$libe|xt". |
|000020c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 69 66 20 74 | | if t|
|000020d0| 65 73 74 20 2d 66 20 22 | 24 61 64 64 69 74 69 6f |est -f "|$additio|
|000020e0| 6e 61 6c 5f 6c 69 62 64 | 69 72 2f 6c 69 62 24 6e |nal_libd|ir/lib$n|
|000020f0| 61 6d 65 2e 6c 61 22 3b | 20 74 68 65 6e 0a 20 20 |ame.la";| then. |
|00002100| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002110| 66 6f 75 6e 64 5f 6c 61 | 3d 22 24 61 64 64 69 74 |found_la|="$addit|
|00002120| 69 6f 6e 61 6c 5f 6c 69 | 62 64 69 72 2f 6c 69 62 |ional_li|bdir/lib|
|00002130| 24 6e 61 6d 65 2e 6c 61 | 22 0a 20 20 20 20 20 20 |$name.la|". |
|00002140| 20 20 20 20 20 20 20 20 | 20 20 66 69 0a 20 20 20 | | fi. |
|00002150| 20 20 20 20 20 20 20 20 | 20 20 20 66 69 0a 20 20 | | fi. |
|00002160| 20 20 20 20 20 20 20 20 | 20 20 66 69 0a 20 20 20 | | fi. |
|00002170| 20 20 20 20 20 20 20 66 | 69 0a 20 20 20 20 20 20 | f|i. |
|00002180| 20 20 20 20 69 66 20 74 | 65 73 74 20 22 58 24 66 | if t|est "X$f|
|00002190| 6f 75 6e 64 5f 64 69 72 | 22 20 3d 20 22 58 22 3b |ound_dir|" = "X";|
|000021a0| 20 74 68 65 6e 0a 20 20 | 20 20 20 20 20 20 20 20 | then. | |
|000021b0| 20 20 66 6f 72 20 78 20 | 69 6e 20 24 4c 44 46 4c | for x |in $LDFL|
|000021c0| 41 47 53 20 24 4c 54 4c | 49 42 5b 5d 4e 41 4d 45 |AGS $LTL|IB[]NAME|
|000021d0| 3b 20 64 6f 0a 20 20 20 | 20 20 20 20 20 20 20 20 |; do. | |
|000021e0| 20 20 20 41 43 5f 4c 49 | 42 5f 57 49 54 48 5f 46 | AC_LI|B_WITH_F|
|000021f0| 49 4e 41 4c 5f 50 52 45 | 46 49 58 28 5b 65 76 61 |INAL_PRE|FIX([eva|
|00002200| 6c 20 78 3d 5c 22 24 78 | 5c 22 5d 29 0a 20 20 20 |l x=\"$x|\"]). |
|00002210| 20 20 20 20 20 20 20 20 | 20 20 20 63 61 73 65 20 | | case |
|00002220| 22 24 78 22 20 69 6e 0a | 20 20 20 20 20 20 20 20 |"$x" in.| |
|00002230| 20 20 20 20 20 20 20 20 | 2d 4c 2a 29 0a 20 20 20 | |-L*). |
|00002240| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 64 | | d|
|00002250| 69 72 3d 60 65 63 68 6f | 20 22 58 24 78 22 20 7c |ir=`echo| "X$x" ||
|00002260| 20 73 65 64 20 2d 65 20 | 27 73 2f 5e 58 2d 4c 2f | sed -e |'s/^X-L/|
|00002270| 2f 27 60 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |/'`. | |
|00002280| 20 20 20 20 20 20 69 66 | 20 74 65 73 74 20 2d 6e | if| test -n|
|00002290| 20 22 24 73 68 6c 69 62 | 65 78 74 22 20 26 26 20 | "$shlib|ext" && |
|000022a0| 74 65 73 74 20 2d 66 20 | 22 24 64 69 72 2f 6c 69 |test -f |"$dir/li|
|000022b0| 62 24 6e 61 6d 65 2e 24 | 73 68 6c 69 62 65 78 74 |b$name.$|shlibext|
|000022c0| 22 3b 20 74 68 65 6e 0a | 20 20 20 20 20 20 20 20 |"; then.| |
|000022d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 66 6f 75 6e | | foun|
|000022e0| 64 5f 64 69 72 3d 22 24 | 64 69 72 22 0a 20 20 20 |d_dir="$|dir". |
|000022f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002300| 20 66 6f 75 6e 64 5f 73 | 6f 3d 22 24 64 69 72 2f | found_s|o="$dir/|
|00002310| 6c 69 62 24 6e 61 6d 65 | 2e 24 73 68 6c 69 62 65 |lib$name|.$shlibe|
|00002320| 78 74 22 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |xt". | |
|00002330| 20 20 20 20 20 20 20 20 | 69 66 20 74 65 73 74 20 | |if test |
|00002340| 2d 66 20 22 24 64 69 72 | 2f 6c 69 62 24 6e 61 6d |-f "$dir|/lib$nam|
|00002350| 65 2e 6c 61 22 3b 20 74 | 68 65 6e 0a 20 20 20 20 |e.la"; t|hen. |
|00002360| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002370| 20 20 66 6f 75 6e 64 5f | 6c 61 3d 22 24 64 69 72 | found_|la="$dir|
|00002380| 2f 6c 69 62 24 6e 61 6d | 65 2e 6c 61 22 0a 20 20 |/lib$nam|e.la". |
|00002390| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000023a0| 20 20 66 69 0a 20 20 20 | 20 20 20 20 20 20 20 20 | fi. | |
|000023b0| 20 20 20 20 20 20 20 65 | 6c 73 65 0a 20 20 20 20 | e|lse. |
|000023c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000023d0| 69 66 20 74 65 73 74 20 | 2d 66 20 22 24 64 69 72 |if test |-f "$dir|
|000023e0| 2f 6c 69 62 24 6e 61 6d | 65 2e 24 6c 69 62 65 78 |/lib$nam|e.$libex|
|000023f0| 74 22 3b 20 74 68 65 6e | 0a 20 20 20 20 20 20 20 |t"; then|. |
|00002400| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 66 | | f|
|00002410| 6f 75 6e 64 5f 64 69 72 | 3d 22 24 64 69 72 22 0a |ound_dir|="$dir".|
|00002420| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002430| 20 20 20 20 20 20 66 6f | 75 6e 64 5f 61 3d 22 24 | fo|und_a="$|
|00002440| 64 69 72 2f 6c 69 62 24 | 6e 61 6d 65 2e 24 6c 69 |dir/lib$|name.$li|
|00002450| 62 65 78 74 22 0a 20 20 | 20 20 20 20 20 20 20 20 |bext". | |
|00002460| 20 20 20 20 20 20 20 20 | 20 20 20 20 69 66 20 74 | | if t|
|00002470| 65 73 74 20 2d 66 20 22 | 24 64 69 72 2f 6c 69 62 |est -f "|$dir/lib|
|00002480| 24 6e 61 6d 65 2e 6c 61 | 22 3b 20 74 68 65 6e 0a |$name.la|"; then.|
|00002490| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000024a0| 20 20 20 20 20 20 20 20 | 66 6f 75 6e 64 5f 6c 61 | |found_la|
|000024b0| 3d 22 24 64 69 72 2f 6c | 69 62 24 6e 61 6d 65 2e |="$dir/l|ib$name.|
|000024c0| 6c 61 22 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |la". | |
|000024d0| 20 20 20 20 20 20 20 20 | 20 20 66 69 0a 20 20 20 | | fi. |
|000024e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000024f0| 20 66 69 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 | fi. | |
|00002500| 20 20 20 20 20 20 66 69 | 0a 20 20 20 20 20 20 20 | fi|. |
|00002510| 20 20 20 20 20 20 20 20 | 20 20 20 3b 3b 0a 20 20 | | ;;. |
|00002520| 20 20 20 20 20 20 20 20 | 20 20 20 20 65 73 61 63 | | esac|
|00002530| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 69 |. | i|
|00002540| 66 20 74 65 73 74 20 22 | 58 24 66 6f 75 6e 64 5f |f test "|X$found_|
|00002550| 64 69 72 22 20 21 3d 20 | 22 58 22 3b 20 74 68 65 |dir" != |"X"; the|
|00002560| 6e 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |n. | |
|00002570| 20 20 62 72 65 61 6b 0a | 20 20 20 20 20 20 20 20 | break.| |
|00002580| 20 20 20 20 20 20 66 69 | 0a 20 20 20 20 20 20 20 | fi|. |
|00002590| 20 20 20 20 20 64 6f 6e | 65 0a 20 20 20 20 20 20 | don|e. |
|000025a0| 20 20 20 20 66 69 0a 20 | 20 20 20 20 20 20 20 20 | fi. | |
|000025b0| 20 69 66 20 74 65 73 74 | 20 22 58 24 66 6f 75 6e | if test| "X$foun|
|000025c0| 64 5f 64 69 72 22 20 21 | 3d 20 22 58 22 3b 20 74 |d_dir" !|= "X"; t|
|000025d0| 68 65 6e 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |hen. | |
|000025e0| 64 6e 6c 20 46 6f 75 6e | 64 20 74 68 65 20 6c 69 |dnl Foun|d the li|
|000025f0| 62 72 61 72 79 2e 0a 20 | 20 20 20 20 20 20 20 20 |brary.. | |
|00002600| 20 20 20 4c 54 4c 49 42 | 5b 5d 4e 41 4d 45 3d 22 | LTLIB|[]NAME="|
|00002610| 24 7b 4c 54 4c 49 42 5b | 5d 4e 41 4d 45 7d 24 7b |${LTLIB[|]NAME}${|
|00002620| 4c 54 4c 49 42 5b 5d 4e | 41 4d 45 3a 2b 20 7d 2d |LTLIB[]N|AME:+ }-|
|00002630| 4c 24 66 6f 75 6e 64 5f | 64 69 72 20 2d 6c 24 6e |L$found_|dir -l$n|
|00002640| 61 6d 65 22 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ame". | |
|00002650| 20 69 66 20 74 65 73 74 | 20 22 58 24 66 6f 75 6e | if test| "X$foun|
|00002660| 64 5f 73 6f 22 20 21 3d | 20 22 58 22 3b 20 74 68 |d_so" !=| "X"; th|
|00002670| 65 6e 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |en. | |
|00002680| 20 64 6e 6c 20 4c 69 6e | 6b 69 6e 67 20 77 69 74 | dnl Lin|king wit|
|00002690| 68 20 61 20 73 68 61 72 | 65 64 20 6c 69 62 72 61 |h a shar|ed libra|
|000026a0| 72 79 2e 20 57 65 20 61 | 74 74 65 6d 70 74 20 74 |ry. We a|ttempt t|
|000026b0| 6f 20 68 61 72 64 63 6f | 64 65 20 69 74 73 0a 20 |o hardco|de its. |
|000026c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 64 6e 6c | | dnl|
|000026d0| 20 64 69 72 65 63 74 6f | 72 79 20 69 6e 74 6f 20 | directo|ry into |
|000026e0| 74 68 65 20 65 78 65 63 | 75 74 61 62 6c 65 27 73 |the exec|utable's|
|000026f0| 20 72 75 6e 70 61 74 68 | 2c 20 75 6e 6c 65 73 73 | runpath|, unless|
|00002700| 20 69 74 27 73 20 74 68 | 65 0a 20 20 20 20 20 20 | it's th|e. |
|00002710| 20 20 20 20 20 20 20 20 | 64 6e 6c 20 73 74 61 6e | |dnl stan|
|00002720| 64 61 72 64 20 2f 75 73 | 72 2f 6c 69 62 2e 0a 20 |dard /us|r/lib.. |
|00002730| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 69 66 20 | | if |
|00002740| 74 65 73 74 20 22 58 24 | 66 6f 75 6e 64 5f 64 69 |test "X$|found_di|
|00002750| 72 22 20 3d 20 22 58 2f | 75 73 72 2f 6c 69 62 22 |r" = "X/|usr/lib"|
|00002760| 3b 20 74 68 65 6e 0a 20 | 20 20 20 20 20 20 20 20 |; then. | |
|00002770| 20 20 20 20 20 20 20 64 | 6e 6c 20 4e 6f 20 68 61 | d|nl No ha|
|00002780| 72 64 63 6f 64 69 6e 67 | 20 69 73 20 6e 65 65 64 |rdcoding| is need|
|00002790| 65 64 2e 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |ed.. | |
|000027a0| 20 20 20 20 4c 49 42 5b | 5d 4e 41 4d 45 3d 22 24 | LIB[|]NAME="$|
|000027b0| 7b 4c 49 42 5b 5d 4e 41 | 4d 45 7d 24 7b 4c 49 42 |{LIB[]NA|ME}${LIB|
|000027c0| 5b 5d 4e 41 4d 45 3a 2b | 20 7d 24 66 6f 75 6e 64 |[]NAME:+| }$found|
|000027d0| 5f 73 6f 22 0a 20 20 20 | 20 20 20 20 20 20 20 20 |_so". | |
|000027e0| 20 20 20 65 6c 73 65 0a | 20 20 20 20 20 20 20 20 | else.| |
|000027f0| 20 20 20 20 20 20 20 20 | 64 6e 6c 20 55 73 65 20 | |dnl Use |
|00002800| 61 6e 20 65 78 70 6c 69 | 63 69 74 20 6f 70 74 69 |an expli|cit opti|
|00002810| 6f 6e 20 74 6f 20 68 61 | 72 64 63 6f 64 65 20 44 |on to ha|rdcode D|
|00002820| 49 52 20 69 6e 74 6f 20 | 74 68 65 20 72 65 73 75 |IR into |the resu|
|00002830| 6c 74 69 6e 67 0a 20 20 | 20 20 20 20 20 20 20 20 |lting. | |
|00002840| 20 20 20 20 20 20 64 6e | 6c 20 62 69 6e 61 72 79 | dn|l binary|
|00002850| 2e 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00002860| 20 20 64 6e 6c 20 50 6f | 74 65 6e 74 69 61 6c 6c | dnl Po|tentiall|
|00002870| 79 20 61 64 64 20 44 49 | 52 20 74 6f 20 6c 74 72 |y add DI|R to ltr|
|00002880| 70 61 74 68 64 69 72 73 | 2e 0a 20 20 20 20 20 20 |pathdirs|.. |
|00002890| 20 20 20 20 20 20 20 20 | 20 20 64 6e 6c 20 54 68 | | dnl Th|
|000028a0| 65 20 6c 74 72 70 61 74 | 68 64 69 72 73 20 77 69 |e ltrpat|hdirs wi|
|000028b0| 6c 6c 20 62 65 20 61 70 | 70 65 6e 64 65 64 20 74 |ll be ap|pended t|
|000028c0| 6f 20 24 4c 54 4c 49 42 | 4e 41 4d 45 20 61 74 20 |o $LTLIB|NAME at |
|000028d0| 74 68 65 20 65 6e 64 2e | 0a 20 20 20 20 20 20 20 |the end.|. |
|000028e0| 20 20 20 20 20 20 20 20 | 20 68 61 76 65 69 74 3d | | haveit=|
|000028f0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00002900| 20 66 6f 72 20 78 20 69 | 6e 20 24 6c 74 72 70 61 | for x i|n $ltrpa|
|00002910| 74 68 64 69 72 73 3b 20 | 64 6f 0a 20 20 20 20 20 |thdirs; |do. |
|00002920| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 69 66 20 | | if |
|00002930| 74 65 73 74 20 22 58 24 | 78 22 20 3d 20 22 58 24 |test "X$|x" = "X$|
|00002940| 66 6f 75 6e 64 5f 64 69 | 72 22 3b 20 74 68 65 6e |found_di|r"; then|
|00002950| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00002960| 20 20 20 20 20 68 61 76 | 65 69 74 3d 79 65 73 0a | hav|eit=yes.|
|00002970| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002980| 20 20 20 20 62 72 65 61 | 6b 0a 20 20 20 20 20 20 | brea|k. |
|00002990| 20 20 20 20 20 20 20 20 | 20 20 20 20 66 69 0a 20 | | fi. |
|000029a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 64 | | d|
|000029b0| 6f 6e 65 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |one. | |
|000029c0| 20 20 20 20 69 66 20 74 | 65 73 74 20 2d 7a 20 22 | if t|est -z "|
|000029d0| 24 68 61 76 65 69 74 22 | 3b 20 74 68 65 6e 0a 20 |$haveit"|; then. |
|000029e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000029f0| 20 6c 74 72 70 61 74 68 | 64 69 72 73 3d 22 24 6c | ltrpath|dirs="$l|
|00002a00| 74 72 70 61 74 68 64 69 | 72 73 20 24 66 6f 75 6e |trpathdi|rs $foun|
|00002a10| 64 5f 64 69 72 22 0a 20 | 20 20 20 20 20 20 20 20 |d_dir". | |
|00002a20| 20 20 20 20 20 20 20 66 | 69 0a 20 20 20 20 20 20 | f|i. |
|00002a30| 20 20 20 20 20 20 20 20 | 20 20 64 6e 6c 20 54 68 | | dnl Th|
|00002a40| 65 20 68 61 72 64 63 6f | 64 69 6e 67 20 69 6e 74 |e hardco|ding int|
|00002a50| 6f 20 24 4c 49 42 4e 41 | 4d 45 20 69 73 20 73 79 |o $LIBNA|ME is sy|
|00002a60| 73 74 65 6d 20 64 65 70 | 65 6e 64 65 6e 74 2e 0a |stem dep|endent..|
|00002a70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002a80| 69 66 20 74 65 73 74 20 | 22 24 68 61 72 64 63 6f |if test |"$hardco|
|00002a90| 64 65 5f 64 69 72 65 63 | 74 22 20 3d 20 79 65 73 |de_direc|t" = yes|
|00002aa0| 3b 20 74 68 65 6e 0a 20 | 20 20 20 20 20 20 20 20 |; then. | |
|00002ab0| 20 20 20 20 20 20 20 20 | 20 64 6e 6c 20 55 73 69 | | dnl Usi|
|00002ac0| 6e 67 20 44 49 52 2f 6c | 69 62 4e 41 4d 45 2e 73 |ng DIR/l|ibNAME.s|
|00002ad0| 6f 20 64 75 72 69 6e 67 | 20 6c 69 6e 6b 69 6e 67 |o during| linking|
|00002ae0| 20 68 61 72 64 63 6f 64 | 65 73 20 44 49 52 20 69 | hardcod|es DIR i|
|00002af0| 6e 74 6f 20 74 68 65 0a | 20 20 20 20 20 20 20 20 |nto the.| |
|00002b00| 20 20 20 20 20 20 20 20 | 20 20 64 6e 6c 20 72 65 | | dnl re|
|00002b10| 73 75 6c 74 69 6e 67 20 | 62 69 6e 61 72 79 2e 0a |sulting |binary..|
|00002b20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002b30| 20 20 4c 49 42 5b 5d 4e | 41 4d 45 3d 22 24 7b 4c | LIB[]N|AME="${L|
|00002b40| 49 42 5b 5d 4e 41 4d 45 | 7d 24 7b 4c 49 42 5b 5d |IB[]NAME|}${LIB[]|
|00002b50| 4e 41 4d 45 3a 2b 20 7d | 24 66 6f 75 6e 64 5f 73 |NAME:+ }|$found_s|
|00002b60| 6f 22 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |o". | |
|00002b70| 20 20 20 65 6c 73 65 0a | 20 20 20 20 20 20 20 20 | else.| |
|00002b80| 20 20 20 20 20 20 20 20 | 20 20 69 66 20 74 65 73 | | if tes|
|00002b90| 74 20 2d 6e 20 22 24 68 | 61 72 64 63 6f 64 65 5f |t -n "$h|ardcode_|
|00002ba0| 6c 69 62 64 69 72 5f 66 | 6c 61 67 5f 73 70 65 63 |libdir_f|lag_spec|
|00002bb0| 22 20 26 26 20 74 65 73 | 74 20 22 24 68 61 72 64 |" && tes|t "$hard|
|00002bc0| 63 6f 64 65 5f 6d 69 6e | 75 73 5f 4c 22 20 3d 20 |code_min|us_L" = |
|00002bd0| 6e 6f 3b 20 74 68 65 6e | 0a 20 20 20 20 20 20 20 |no; then|. |
|00002be0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 64 6e 6c | | dnl|
|00002bf0| 20 55 73 65 20 61 6e 20 | 65 78 70 6c 69 63 69 74 | Use an |explicit|
|00002c00| 20 6f 70 74 69 6f 6e 20 | 74 6f 20 68 61 72 64 63 | option |to hardc|
|00002c10| 6f 64 65 20 44 49 52 20 | 69 6e 74 6f 20 74 68 65 |ode DIR |into the|
|00002c20| 20 72 65 73 75 6c 74 69 | 6e 67 0a 20 20 20 20 20 | resulti|ng. |
|00002c30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 64 | | d|
|00002c40| 6e 6c 20 62 69 6e 61 72 | 79 2e 0a 20 20 20 20 20 |nl binar|y.. |
|00002c50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 4c | | L|
|00002c60| 49 42 5b 5d 4e 41 4d 45 | 3d 22 24 7b 4c 49 42 5b |IB[]NAME|="${LIB[|
|00002c70| 5d 4e 41 4d 45 7d 24 7b | 4c 49 42 5b 5d 4e 41 4d |]NAME}${|LIB[]NAM|
|00002c80| 45 3a 2b 20 7d 24 66 6f | 75 6e 64 5f 73 6f 22 0a |E:+ }$fo|und_so".|
|00002c90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002ca0| 20 20 20 20 64 6e 6c 20 | 50 6f 74 65 6e 74 69 61 | dnl |Potentia|
|00002cb0| 6c 6c 79 20 61 64 64 20 | 44 49 52 20 74 6f 20 72 |lly add |DIR to r|
|00002cc0| 70 61 74 68 64 69 72 73 | 2e 0a 20 20 20 20 20 20 |pathdirs|.. |
|00002cd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 64 6e | | dn|
|00002ce0| 6c 20 54 68 65 20 72 70 | 61 74 68 64 69 72 73 20 |l The rp|athdirs |
|00002cf0| 77 69 6c 6c 20 62 65 20 | 61 70 70 65 6e 64 65 64 |will be |appended|
|00002d00| 20 74 6f 20 24 4c 49 42 | 4e 41 4d 45 20 61 74 20 | to $LIB|NAME at |
|00002d10| 74 68 65 20 65 6e 64 2e | 0a 20 20 20 20 20 20 20 |the end.|. |
|00002d20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 68 61 76 | | hav|
|00002d30| 65 69 74 3d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |eit=. | |
|00002d40| 20 20 20 20 20 20 20 20 | 20 66 6f 72 20 78 20 69 | | for x i|
|00002d50| 6e 20 24 72 70 61 74 68 | 64 69 72 73 3b 20 64 6f |n $rpath|dirs; do|
|00002d60| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00002d70| 20 20 20 20 20 20 20 69 | 66 20 74 65 73 74 20 22 | i|f test "|
|00002d80| 58 24 78 22 20 3d 20 22 | 58 24 66 6f 75 6e 64 5f |X$x" = "|X$found_|
|00002d90| 64 69 72 22 3b 20 74 68 | 65 6e 0a 20 20 20 20 20 |dir"; th|en. |
|00002da0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002db0| 20 20 20 68 61 76 65 69 | 74 3d 79 65 73 0a 20 20 | havei|t=yes. |
|00002dc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002dd0| 20 20 20 20 20 20 62 72 | 65 61 6b 0a 20 20 20 20 | br|eak. |
|00002de0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002df0| 20 20 66 69 0a 20 20 20 | 20 20 20 20 20 20 20 20 | fi. | |
|00002e00| 20 20 20 20 20 20 20 20 | 20 64 6f 6e 65 0a 20 20 | | done. |
|00002e10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002e20| 20 20 69 66 20 74 65 73 | 74 20 2d 7a 20 22 24 68 | if tes|t -z "$h|
|00002e30| 61 76 65 69 74 22 3b 20 | 74 68 65 6e 0a 20 20 20 |aveit"; |then. |
|00002e40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002e50| 20 20 20 72 70 61 74 68 | 64 69 72 73 3d 22 24 72 | rpath|dirs="$r|
|00002e60| 70 61 74 68 64 69 72 73 | 20 24 66 6f 75 6e 64 5f |pathdirs| $found_|
|00002e70| 64 69 72 22 0a 20 20 20 | 20 20 20 20 20 20 20 20 |dir". | |
|00002e80| 20 20 20 20 20 20 20 20 | 20 66 69 0a 20 20 20 20 | | fi. |
|00002e90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 65 6c | | el|
|00002ea0| 73 65 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |se. | |
|00002eb0| 20 20 20 20 20 20 20 64 | 6e 6c 20 52 65 6c 79 20 | d|nl Rely |
|00002ec0| 6f 6e 20 22 2d 4c 24 66 | 6f 75 6e 64 5f 64 69 72 |on "-L$f|ound_dir|
|00002ed0| 22 2e 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |".. | |
|00002ee0| 20 20 20 20 20 20 20 64 | 6e 6c 20 42 75 74 20 64 | d|nl But d|
|00002ef0| 6f 6e 27 74 20 61 64 64 | 20 69 74 20 69 66 20 69 |on't add| it if i|
|00002f00| 74 27 73 20 61 6c 72 65 | 61 64 79 20 63 6f 6e 74 |t's alre|ady cont|
|00002f10| 61 69 6e 65 64 20 69 6e | 20 74 68 65 20 4c 44 46 |ained in| the LDF|
|00002f20| 4c 41 47 53 0a 20 20 20 | 20 20 20 20 20 20 20 20 |LAGS. | |
|00002f30| 20 20 20 20 20 20 20 20 | 20 64 6e 6c 20 6f 72 20 | | dnl or |
|00002f40| 74 68 65 20 61 6c 72 65 | 61 64 79 20 63 6f 6e 73 |the alre|ady cons|
|00002f50| 74 72 75 63 74 65 64 20 | 24 4c 49 42 4e 41 4d 45 |tructed |$LIBNAME|
|00002f60| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00002f70| 20 20 20 20 20 68 61 76 | 65 69 74 3d 0a 20 20 20 | hav|eit=. |
|00002f80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002f90| 20 66 6f 72 20 78 20 69 | 6e 20 24 4c 44 46 4c 41 | for x i|n $LDFLA|
|00002fa0| 47 53 20 24 4c 49 42 5b | 5d 4e 41 4d 45 3b 20 64 |GS $LIB[|]NAME; d|
|00002fb0| 6f 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |o. | |
|00002fc0| 20 20 20 20 20 20 20 20 | 41 43 5f 4c 49 42 5f 57 | |AC_LIB_W|
|00002fd0| 49 54 48 5f 46 49 4e 41 | 4c 5f 50 52 45 46 49 58 |ITH_FINA|L_PREFIX|
|00002fe0| 28 5b 65 76 61 6c 20 78 | 3d 5c 22 24 78 5c 22 5d |([eval x|=\"$x\"]|
|00002ff0| 29 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |). | |
|00003000| 20 20 20 20 20 20 20 20 | 69 66 20 74 65 73 74 20 | |if test |
|00003010| 22 58 24 78 22 20 3d 20 | 22 58 2d 4c 24 66 6f 75 |"X$x" = |"X-L$fou|
|00003020| 6e 64 5f 64 69 72 22 3b | 20 74 68 65 6e 0a 20 20 |nd_dir";| then. |
|00003030| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003040| 20 20 20 20 20 20 68 61 | 76 65 69 74 3d 79 65 73 | ha|veit=yes|
|00003050| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00003060| 20 20 20 20 20 20 20 20 | 20 62 72 65 61 6b 0a 20 | | break. |
|00003070| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003080| 20 20 20 20 20 66 69 0a | 20 20 20 20 20 20 20 20 | fi.| |
|00003090| 20 20 20 20 20 20 20 20 | 20 20 20 20 64 6f 6e 65 | | done|
|000030a0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000030b0| 20 20 20 20 20 69 66 20 | 74 65 73 74 20 2d 7a 20 | if |test -z |
|000030c0| 22 24 68 61 76 65 69 74 | 22 3b 20 74 68 65 6e 0a |"$haveit|"; then.|
|000030d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000030e0| 20 20 20 20 20 20 4c 49 | 42 5b 5d 4e 41 4d 45 3d | LI|B[]NAME=|
|000030f0| 22 24 7b 4c 49 42 5b 5d | 4e 41 4d 45 7d 24 7b 4c |"${LIB[]|NAME}${L|
|00003100| 49 42 5b 5d 4e 41 4d 45 | 3a 2b 20 7d 2d 4c 24 66 |IB[]NAME|:+ }-L$f|
|00003110| 6f 75 6e 64 5f 64 69 72 | 22 0a 20 20 20 20 20 20 |ound_dir|". |
|00003120| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 66 69 | | fi|
|00003130| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00003140| 20 20 20 20 20 69 66 20 | 74 65 73 74 20 22 24 68 | if |test "$h|
|00003150| 61 72 64 63 6f 64 65 5f | 6d 69 6e 75 73 5f 4c 22 |ardcode_|minus_L"|
|00003160| 20 21 3d 20 6e 6f 3b 20 | 74 68 65 6e 0a 20 20 20 | != no; |then. |
|00003170| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003180| 20 20 20 64 6e 6c 20 46 | 49 58 4d 45 3a 20 4e 6f | dnl F|IXME: No|
|00003190| 74 20 73 75 72 65 20 77 | 68 65 74 68 65 72 20 77 |t sure w|hether w|
|000031a0| 65 20 73 68 6f 75 6c 64 | 20 75 73 65 0a 20 20 20 |e should| use. |
|000031b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000031c0| 20 20 20 64 6e 6c 20 22 | 2d 4c 24 66 6f 75 6e 64 | dnl "|-L$found|
|000031d0| 5f 64 69 72 20 2d 6c 24 | 6e 61 6d 65 22 20 6f 72 |_dir -l$|name" or|
|000031e0| 20 22 2d 4c 24 66 6f 75 | 6e 64 5f 64 69 72 20 24 | "-L$fou|nd_dir $|
|000031f0| 66 6f 75 6e 64 5f 73 6f | 22 0a 20 20 20 20 20 20 |found_so|". |
|00003200| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003210| 64 6e 6c 20 68 65 72 65 | 2e 0a 20 20 20 20 20 20 |dnl here|.. |
|00003220| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003230| 4c 49 42 5b 5d 4e 41 4d | 45 3d 22 24 7b 4c 49 42 |LIB[]NAM|E="${LIB|
|00003240| 5b 5d 4e 41 4d 45 7d 24 | 7b 4c 49 42 5b 5d 4e 41 |[]NAME}$|{LIB[]NA|
|00003250| 4d 45 3a 2b 20 7d 24 66 | 6f 75 6e 64 5f 73 6f 22 |ME:+ }$f|ound_so"|
|00003260| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00003270| 20 20 20 20 20 65 6c 73 | 65 0a 20 20 20 20 20 20 | els|e. |
|00003280| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003290| 64 6e 6c 20 57 65 20 63 | 61 6e 6e 6f 74 20 75 73 |dnl We c|annot us|
|000032a0| 65 20 24 68 61 72 64 63 | 6f 64 65 5f 72 75 6e 70 |e $hardc|ode_runp|
|000032b0| 61 74 68 5f 76 61 72 20 | 61 6e 64 20 4c 44 5f 52 |ath_var |and LD_R|
|000032c0| 55 4e 5f 50 41 54 48 0a | 20 20 20 20 20 20 20 20 |UN_PATH.| |
|000032d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 64 6e | | dn|
|000032e0| 6c 20 68 65 72 65 2c 20 | 62 65 63 61 75 73 65 20 |l here, |because |
|000032f0| 74 68 69 73 20 64 6f 65 | 73 6e 27 74 20 66 69 74 |this doe|sn't fit|
|00003300| 20 69 6e 20 66 6c 61 67 | 73 20 70 61 73 73 65 64 | in flag|s passed|
|00003310| 20 74 6f 20 74 68 65 0a | 20 20 20 20 20 20 20 20 | to the.| |
|00003320| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 64 6e | | dn|
|00003330| 6c 20 63 6f 6d 70 69 6c | 65 72 2e 20 53 6f 20 67 |l compil|er. So g|
|00003340| 69 76 65 20 75 70 2e 20 | 4e 6f 20 68 61 72 64 63 |ive up. |No hardc|
|00003350| 6f 64 69 6e 67 2e 20 54 | 68 69 73 20 61 66 66 65 |oding. T|his affe|
|00003360| 63 74 73 20 6f 6e 6c 79 | 0a 20 20 20 20 20 20 20 |cts only|. |
|00003370| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 64 | | d|
|00003380| 6e 6c 20 76 65 72 79 20 | 6f 6c 64 20 73 79 73 74 |nl very |old syst|
|00003390| 65 6d 73 2e 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ems.. | |
|000033a0| 20 20 20 20 20 20 20 20 | 20 20 20 64 6e 6c 20 46 | | dnl F|
|000033b0| 49 58 4d 45 3a 20 4e 6f | 74 20 73 75 72 65 20 77 |IXME: No|t sure w|
|000033c0| 68 65 74 68 65 72 20 77 | 65 20 73 68 6f 75 6c 64 |hether w|e should|
|000033d0| 20 75 73 65 0a 20 20 20 | 20 20 20 20 20 20 20 20 | use. | |
|000033e0| 20 20 20 20 20 20 20 20 | 20 20 20 64 6e 6c 20 22 | | dnl "|
|000033f0| 2d 4c 24 66 6f 75 6e 64 | 5f 64 69 72 20 2d 6c 24 |-L$found|_dir -l$|
|00003400| 6e 61 6d 65 22 20 6f 72 | 20 22 2d 4c 24 66 6f 75 |name" or| "-L$fou|
|00003410| 6e 64 5f 64 69 72 20 24 | 66 6f 75 6e 64 5f 73 6f |nd_dir $|found_so|
|00003420| 22 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |". | |
|00003430| 20 20 20 20 20 20 20 20 | 64 6e 6c 20 68 65 72 65 | |dnl here|
|00003440| 2e 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00003450| 20 20 20 20 20 20 20 20 | 4c 49 42 5b 5d 4e 41 4d | |LIB[]NAM|
|00003460| 45 3d 22 24 7b 4c 49 42 | 5b 5d 4e 41 4d 45 7d 24 |E="${LIB|[]NAME}$|
|00003470| 7b 4c 49 42 5b 5d 4e 41 | 4d 45 3a 2b 20 7d 2d 6c |{LIB[]NA|ME:+ }-l|
|00003480| 24 6e 61 6d 65 22 0a 20 | 20 20 20 20 20 20 20 20 |$name". | |
|00003490| 20 20 20 20 20 20 20 20 | 20 20 20 66 69 0a 20 20 | | fi. |
|000034a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000034b0| 66 69 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |fi. | |
|000034c0| 20 20 20 66 69 0a 20 20 | 20 20 20 20 20 20 20 20 | fi. | |
|000034d0| 20 20 20 20 66 69 0a 20 | 20 20 20 20 20 20 20 20 | fi. | |
|000034e0| 20 20 20 65 6c 73 65 0a | 20 20 20 20 20 20 20 20 | else.| |
|000034f0| 20 20 20 20 20 20 69 66 | 20 74 65 73 74 20 22 58 | if| test "X|
|00003500| 24 66 6f 75 6e 64 5f 61 | 22 20 21 3d 20 22 58 22 |$found_a|" != "X"|
|00003510| 3b 20 74 68 65 6e 0a 20 | 20 20 20 20 20 20 20 20 |; then. | |
|00003520| 20 20 20 20 20 20 20 64 | 6e 6c 20 4c 69 6e 6b 69 | d|nl Linki|
|00003530| 6e 67 20 77 69 74 68 20 | 61 20 73 74 61 74 69 63 |ng with |a static|
|00003540| 20 6c 69 62 72 61 72 79 | 2e 0a 20 20 20 20 20 20 | library|.. |
|00003550| 20 20 20 20 20 20 20 20 | 20 20 4c 49 42 5b 5d 4e | | LIB[]N|
|00003560| 41 4d 45 3d 22 24 7b 4c | 49 42 5b 5d 4e 41 4d 45 |AME="${L|IB[]NAME|
|00003570| 7d 24 7b 4c 49 42 5b 5d | 4e 41 4d 45 3a 2b 20 7d |}${LIB[]|NAME:+ }|
|00003580| 24 66 6f 75 6e 64 5f 61 | 22 0a 20 20 20 20 20 20 |$found_a|". |
|00003590| 20 20 20 20 20 20 20 20 | 65 6c 73 65 0a 20 20 20 | |else. |
|000035a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 64 6e 6c | | dnl|
|000035b0| 20 57 65 20 73 68 6f 75 | 6c 64 6e 27 74 20 63 6f | We shou|ldn't co|
|000035c0| 6d 65 20 68 65 72 65 2c | 20 62 75 74 20 61 6e 79 |me here,| but any|
|000035d0| 77 61 79 20 69 74 27 73 | 20 67 6f 6f 64 20 74 6f |way it's| good to|
|000035e0| 20 68 61 76 65 20 61 0a | 20 20 20 20 20 20 20 20 | have a.| |
|000035f0| 20 20 20 20 20 20 20 20 | 64 6e 6c 20 66 61 6c 6c | |dnl fall|
|00003600| 62 61 63 6b 2e 0a 20 20 | 20 20 20 20 20 20 20 20 |back.. | |
|00003610| 20 20 20 20 20 20 4c 49 | 42 5b 5d 4e 41 4d 45 3d | LI|B[]NAME=|
|00003620| 22 24 7b 4c 49 42 5b 5d | 4e 41 4d 45 7d 24 7b 4c |"${LIB[]|NAME}${L|
|00003630| 49 42 5b 5d 4e 41 4d 45 | 3a 2b 20 7d 2d 4c 24 66 |IB[]NAME|:+ }-L$f|
|00003640| 6f 75 6e 64 5f 64 69 72 | 20 2d 6c 24 6e 61 6d 65 |ound_dir| -l$name|
|00003650| 22 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |". | |
|00003660| 66 69 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 66 |fi. | f|
|00003670| 69 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 64 6e |i. | dn|
|00003680| 6c 20 41 73 73 75 6d 65 | 20 74 68 65 20 69 6e 63 |l Assume| the inc|
|00003690| 6c 75 64 65 20 66 69 6c | 65 73 20 61 72 65 20 6e |lude fil|es are n|
|000036a0| 65 61 72 62 79 2e 0a 20 | 20 20 20 20 20 20 20 20 |earby.. | |
|000036b0| 20 20 20 61 64 64 69 74 | 69 6f 6e 61 6c 5f 69 6e | addit|ional_in|
|000036c0| 63 6c 75 64 65 64 69 72 | 3d 0a 20 20 20 20 20 20 |cludedir|=. |
|000036d0| 20 20 20 20 20 20 63 61 | 73 65 20 22 24 66 6f 75 | ca|se "$fou|
|000036e0| 6e 64 5f 64 69 72 22 20 | 69 6e 0a 20 20 20 20 20 |nd_dir" |in. |
|000036f0| 20 20 20 20 20 20 20 20 | 20 2a 2f 6c 69 62 20 7c | | */lib ||
|00003700| 20 2a 2f 6c 69 62 2f 29 | 0a 20 20 20 20 20 20 20 | */lib/)|. |
|00003710| 20 20 20 20 20 20 20 20 | 20 62 61 73 65 64 69 72 | | basedir|
|00003720| 3d 60 65 63 68 6f 20 22 | 58 24 66 6f 75 6e 64 5f |=`echo "|X$found_|
|00003730| 64 69 72 22 20 7c 20 73 | 65 64 20 2d 65 20 27 73 |dir" | s|ed -e 's|
|00003740| 2c 5e 58 2c 2c 27 20 2d | 65 20 27 73 2c 2f 6c 69 |,^X,,' -|e 's,/li|
|00003750| 62 2f 2a 24 2c 2c 27 60 | 0a 20 20 20 20 20 20 20 |b/*$,,'`|. |
|00003760| 20 20 20 20 20 20 20 20 | 20 61 64 64 69 74 69 6f | | additio|
|00003770| 6e 61 6c 5f 69 6e 63 6c | 75 64 65 64 69 72 3d 22 |nal_incl|udedir="|
|00003780| 24 62 61 73 65 64 69 72 | 2f 69 6e 63 6c 75 64 65 |$basedir|/include|
|00003790| 22 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |". | |
|000037a0| 20 20 3b 3b 0a 20 20 20 | 20 20 20 20 20 20 20 20 | ;;. | |
|000037b0| 20 65 73 61 63 0a 20 20 | 20 20 20 20 20 20 20 20 | esac. | |
|000037c0| 20 20 69 66 20 74 65 73 | 74 20 22 58 24 61 64 64 | if tes|t "X$add|
|000037d0| 69 74 69 6f 6e 61 6c 5f | 69 6e 63 6c 75 64 65 64 |itional_|included|
|000037e0| 69 72 22 20 21 3d 20 22 | 58 22 3b 20 74 68 65 6e |ir" != "|X"; then|
|000037f0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 64 |. | d|
|00003800| 6e 6c 20 50 6f 74 65 6e | 74 69 61 6c 6c 79 20 61 |nl Poten|tially a|
|00003810| 64 64 20 24 61 64 64 69 | 74 69 6f 6e 61 6c 5f 69 |dd $addi|tional_i|
|00003820| 6e 63 6c 75 64 65 64 69 | 72 20 74 6f 20 24 49 4e |ncludedi|r to $IN|
|00003830| 43 4e 41 4d 45 2e 0a 20 | 20 20 20 20 20 20 20 20 |CNAME.. | |
|00003840| 20 20 20 20 20 64 6e 6c | 20 42 75 74 20 64 6f 6e | dnl| But don|
|00003850| 27 74 20 61 64 64 20 69 | 74 0a 20 20 20 20 20 20 |'t add i|t. |
|00003860| 20 20 20 20 20 20 20 20 | 64 6e 6c 20 20 20 31 2e | |dnl 1.|
|00003870| 20 69 66 20 69 74 27 73 | 20 74 68 65 20 73 74 61 | if it's| the sta|
|00003880| 6e 64 61 72 64 20 2f 75 | 73 72 2f 69 6e 63 6c 75 |ndard /u|sr/inclu|
|00003890| 64 65 2c 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |de,. | |
|000038a0| 20 20 64 6e 6c 20 20 20 | 32 2e 20 69 66 20 69 74 | dnl |2. if it|
|000038b0| 27 73 20 2f 75 73 72 2f | 6c 6f 63 61 6c 2f 69 6e |'s /usr/|local/in|
|000038c0| 63 6c 75 64 65 20 61 6e | 64 20 77 65 20 61 72 65 |clude an|d we are|
|000038d0| 20 75 73 69 6e 67 20 47 | 43 43 20 6f 6e 20 4c 69 | using G|CC on Li|
|000038e0| 6e 75 78 2c 0a 20 20 20 | 20 20 20 20 20 20 20 20 |nux,. | |
|000038f0| 20 20 20 64 6e 6c 20 20 | 20 33 2e 20 69 66 20 69 | dnl | 3. if i|
|00003900| 74 27 73 20 61 6c 72 65 | 61 64 79 20 70 72 65 73 |t's alre|ady pres|
|00003910| 65 6e 74 20 69 6e 20 24 | 43 50 50 46 4c 41 47 53 |ent in $|CPPFLAGS|
|00003920| 20 6f 72 20 74 68 65 20 | 61 6c 72 65 61 64 79 0a | or the |already.|
|00003930| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 64 6e | | dn|
|00003940| 6c 20 20 20 20 20 20 63 | 6f 6e 73 74 72 75 63 74 |l c|onstruct|
|00003950| 65 64 20 24 49 4e 43 4e | 41 4d 45 2c 0a 20 20 20 |ed $INCN|AME,. |
|00003960| 20 20 20 20 20 20 20 20 | 20 20 20 64 6e 6c 20 20 | | dnl |
|00003970| 20 34 2e 20 69 66 20 69 | 74 20 64 6f 65 73 6e 27 | 4. if i|t doesn'|
|00003980| 74 20 65 78 69 73 74 20 | 61 73 20 61 20 64 69 72 |t exist |as a dir|
|00003990| 65 63 74 6f 72 79 2e 0a | 20 20 20 20 20 20 20 20 |ectory..| |
|000039a0| 20 20 20 20 20 20 69 66 | 20 74 65 73 74 20 22 58 | if| test "X|
|000039b0| 24 61 64 64 69 74 69 6f | 6e 61 6c 5f 69 6e 63 6c |$additio|nal_incl|
|000039c0| 75 64 65 64 69 72 22 20 | 21 3d 20 22 58 2f 75 73 |udedir" |!= "X/us|
|000039d0| 72 2f 69 6e 63 6c 75 64 | 65 22 3b 20 74 68 65 6e |r/includ|e"; then|
|000039e0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000039f0| 20 68 61 76 65 69 74 3d | 0a 20 20 20 20 20 20 20 | haveit=|. |
|00003a00| 20 20 20 20 20 20 20 20 | 20 69 66 20 74 65 73 74 | | if test|
|00003a10| 20 22 58 24 61 64 64 69 | 74 69 6f 6e 61 6c 5f 69 | "X$addi|tional_i|
|00003a20| 6e 63 6c 75 64 65 64 69 | 72 22 20 3d 20 22 58 2f |ncludedi|r" = "X/|
|00003a30| 75 73 72 2f 6c 6f 63 61 | 6c 2f 69 6e 63 6c 75 64 |usr/loca|l/includ|
|00003a40| 65 22 3b 20 74 68 65 6e | 0a 20 20 20 20 20 20 20 |e"; then|. |
|00003a50| 20 20 20 20 20 20 20 20 | 20 20 20 69 66 20 74 65 | | if te|
|00003a60| 73 74 20 2d 6e 20 22 24 | 47 43 43 22 3b 20 74 68 |st -n "$|GCC"; th|
|00003a70| 65 6e 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |en. | |
|00003a80| 20 20 20 20 20 20 20 63 | 61 73 65 20 24 68 6f 73 | c|ase $hos|
|00003a90| 74 5f 6f 73 20 69 6e 0a | 20 20 20 20 20 20 20 20 |t_os in.| |
|00003aa0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 6c 69 | | li|
|00003ab0| 6e 75 78 2a 29 20 68 61 | 76 65 69 74 3d 79 65 73 |nux*) ha|veit=yes|
|00003ac0| 3b 3b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;;. | |
|00003ad0| 20 20 20 20 20 20 20 65 | 73 61 63 0a 20 20 20 20 | e|sac. |
|00003ae0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 66 69 | | fi|
|00003af0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00003b00| 20 66 69 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 | fi. | |
|00003b10| 20 20 20 20 69 66 20 74 | 65 73 74 20 2d 7a 20 22 | if t|est -z "|
|00003b20| 24 68 61 76 65 69 74 22 | 3b 20 74 68 65 6e 0a 20 |$haveit"|; then. |
|00003b30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003b40| 20 66 6f 72 20 78 20 69 | 6e 20 24 43 50 50 46 4c | for x i|n $CPPFL|
|00003b50| 41 47 53 20 24 49 4e 43 | 5b 5d 4e 41 4d 45 3b 20 |AGS $INC|[]NAME; |
|00003b60| 64 6f 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |do. | |
|00003b70| 20 20 20 20 20 20 20 41 | 43 5f 4c 49 42 5f 57 49 | A|C_LIB_WI|
|00003b80| 54 48 5f 46 49 4e 41 4c | 5f 50 52 45 46 49 58 28 |TH_FINAL|_PREFIX(|
|00003b90| 5b 65 76 61 6c 20 78 3d | 5c 22 24 78 5c 22 5d 29 |[eval x=|\"$x\"])|
|00003ba0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00003bb0| 20 20 20 20 20 69 66 20 | 74 65 73 74 20 22 58 24 | if |test "X$|
|00003bc0| 78 22 20 3d 20 22 58 2d | 49 24 61 64 64 69 74 69 |x" = "X-|I$additi|
|00003bd0| 6f 6e 61 6c 5f 69 6e 63 | 6c 75 64 65 64 69 72 22 |onal_inc|ludedir"|
|00003be0| 3b 20 74 68 65 6e 0a 20 | 20 20 20 20 20 20 20 20 |; then. | |
|00003bf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 68 61 76 | | hav|
|00003c00| 65 69 74 3d 79 65 73 0a | 20 20 20 20 20 20 20 20 |eit=yes.| |
|00003c10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 62 72 | | br|
|00003c20| 65 61 6b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |eak. | |
|00003c30| 20 20 20 20 20 20 20 20 | 66 69 0a 20 20 20 20 20 | |fi. |
|00003c40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 64 6f 6e | | don|
|00003c50| 65 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e. | |
|00003c60| 20 20 20 20 69 66 20 74 | 65 73 74 20 2d 7a 20 22 | if t|est -z "|
|00003c70| 24 68 61 76 65 69 74 22 | 3b 20 74 68 65 6e 0a 20 |$haveit"|; then. |
|00003c80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003c90| 20 20 20 69 66 20 74 65 | 73 74 20 2d 64 20 22 24 | if te|st -d "$|
|00003ca0| 61 64 64 69 74 69 6f 6e | 61 6c 5f 69 6e 63 6c 75 |addition|al_inclu|
|00003cb0| 64 65 64 69 72 22 3b 20 | 74 68 65 6e 0a 20 20 20 |dedir"; |then. |
|00003cc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003cd0| 20 20 20 64 6e 6c 20 52 | 65 61 6c 6c 79 20 61 64 | dnl R|eally ad|
|00003ce0| 64 20 24 61 64 64 69 74 | 69 6f 6e 61 6c 5f 69 6e |d $addit|ional_in|
|00003cf0| 63 6c 75 64 65 64 69 72 | 20 74 6f 20 24 49 4e 43 |cludedir| to $INC|
|00003d00| 4e 41 4d 45 2e 0a 20 20 | 20 20 20 20 20 20 20 20 |NAME.. | |
|00003d10| 20 20 20 20 20 20 20 20 | 20 20 20 20 49 4e 43 5b | | INC[|
|00003d20| 5d 4e 41 4d 45 3d 22 24 | 7b 49 4e 43 5b 5d 4e 41 |]NAME="$|{INC[]NA|
|00003d30| 4d 45 7d 24 7b 49 4e 43 | 5b 5d 4e 41 4d 45 3a 2b |ME}${INC|[]NAME:+|
|00003d40| 20 7d 2d 49 24 61 64 64 | 69 74 69 6f 6e 61 6c 5f | }-I$add|itional_|
|00003d50| 69 6e 63 6c 75 64 65 64 | 69 72 22 0a 20 20 20 20 |included|ir". |
|00003d60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003d70| 66 69 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |fi. | |
|00003d80| 20 20 20 20 20 66 69 0a | 20 20 20 20 20 20 20 20 | fi.| |
|00003d90| 20 20 20 20 20 20 20 20 | 66 69 0a 20 20 20 20 20 | |fi. |
|00003da0| 20 20 20 20 20 20 20 20 | 20 66 69 0a 20 20 20 20 | | fi. |
|00003db0| 20 20 20 20 20 20 20 20 | 66 69 0a 20 20 20 20 20 | |fi. |
|00003dc0| 20 20 20 20 20 20 20 64 | 6e 6c 20 4c 6f 6f 6b 20 | d|nl Look |
|00003dd0| 66 6f 72 20 64 65 70 65 | 6e 64 65 6e 63 69 65 73 |for depe|ndencies|
|00003de0| 2e 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 69 66 |.. | if|
|00003df0| 20 74 65 73 74 20 2d 6e | 20 22 24 66 6f 75 6e 64 | test -n| "$found|
|00003e00| 5f 6c 61 22 3b 20 74 68 | 65 6e 0a 20 20 20 20 20 |_la"; th|en. |
|00003e10| 20 20 20 20 20 20 20 20 | 20 64 6e 6c 20 52 65 61 | | dnl Rea|
|00003e20| 64 20 74 68 65 20 2e 6c | 61 20 66 69 6c 65 2e 20 |d the .l|a file. |
|00003e30| 49 74 20 64 65 66 69 6e | 65 73 20 74 68 65 20 76 |It defin|es the v|
|00003e40| 61 72 69 61 62 6c 65 73 | 0a 20 20 20 20 20 20 20 |ariables|. |
|00003e50| 20 20 20 20 20 20 20 64 | 6e 6c 20 64 6c 6e 61 6d | d|nl dlnam|
|00003e60| 65 2c 20 6c 69 62 72 61 | 72 79 5f 6e 61 6d 65 73 |e, libra|ry_names|
|00003e70| 2c 20 6f 6c 64 5f 6c 69 | 62 72 61 72 79 2c 20 64 |, old_li|brary, d|
|00003e80| 65 70 65 6e 64 65 6e 63 | 79 5f 6c 69 62 73 2c 20 |ependenc|y_libs, |
|00003e90| 63 75 72 72 65 6e 74 2c | 0a 20 20 20 20 20 20 20 |current,|. |
|00003ea0| 20 20 20 20 20 20 20 64 | 6e 6c 20 61 67 65 2c 20 | d|nl age, |
|00003eb0| 72 65 76 69 73 69 6f 6e | 2c 20 69 6e 73 74 61 6c |revision|, instal|
|00003ec0| 6c 65 64 2c 20 64 6c 6f | 70 65 6e 2c 20 64 6c 70 |led, dlo|pen, dlp|
|00003ed0| 72 65 6f 70 65 6e 2c 20 | 6c 69 62 64 69 72 2e 0a |reopen, |libdir..|
|00003ee0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 73 61 | | sa|
|00003ef0| 76 65 5f 6c 69 62 64 69 | 72 3d 22 24 6c 69 62 64 |ve_libdi|r="$libd|
|00003f00| 69 72 22 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |ir". | |
|00003f10| 20 20 63 61 73 65 20 22 | 24 66 6f 75 6e 64 5f 6c | case "|$found_l|
|00003f20| 61 22 20 69 6e 0a 20 20 | 20 20 20 20 20 20 20 20 |a" in. | |
|00003f30| 20 20 20 20 20 20 2a 2f | 2a 20 7c 20 2a 5c 5c 2a | */|* | *\\*|
|00003f40| 29 20 2e 20 22 24 66 6f | 75 6e 64 5f 6c 61 22 20 |) . "$fo|und_la" |
|00003f50| 3b 3b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;;. | |
|00003f60| 20 20 20 2a 29 20 2e 20 | 22 2e 2f 24 66 6f 75 6e | *) . |"./$foun|
|00003f70| 64 5f 6c 61 22 20 3b 3b | 0a 20 20 20 20 20 20 20 |d_la" ;;|. |
|00003f80| 20 20 20 20 20 20 20 65 | 73 61 63 0a 20 20 20 20 | e|sac. |
|00003f90| 20 20 20 20 20 20 20 20 | 20 20 6c 69 62 64 69 72 | | libdir|
|00003fa0| 3d 22 24 73 61 76 65 5f | 6c 69 62 64 69 72 22 0a |="$save_|libdir".|
|00003fb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 64 6e | | dn|
|00003fc0| 6c 20 57 65 20 75 73 65 | 20 6f 6e 6c 79 20 64 65 |l We use| only de|
|00003fd0| 70 65 6e 64 65 6e 63 79 | 5f 6c 69 62 73 2e 0a 20 |pendency|_libs.. |
|00003fe0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 66 6f 72 | | for|
|00003ff0| 20 64 65 70 20 69 6e 20 | 24 64 65 70 65 6e 64 65 | dep in |$depende|
|00004000| 6e 63 79 5f 6c 69 62 73 | 3b 20 64 6f 0a 20 20 20 |ncy_libs|; do. |
|00004010| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 63 61 73 | | cas|
|00004020| 65 20 22 24 64 65 70 22 | 20 69 6e 0a 20 20 20 20 |e "$dep"| in. |
|00004030| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2d 4c | | -L|
|00004040| 2a 29 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |*). | |
|00004050| 20 20 20 20 20 20 20 61 | 64 64 69 74 69 6f 6e 61 | a|dditiona|
|00004060| 6c 5f 6c 69 62 64 69 72 | 3d 60 65 63 68 6f 20 22 |l_libdir|=`echo "|
|00004070| 58 24 64 65 70 22 20 7c | 20 73 65 64 20 2d 65 20 |X$dep" || sed -e |
|00004080| 27 73 2f 5e 58 2d 4c 2f | 2f 27 60 0a 20 20 20 20 |'s/^X-L/|/'`. |
|00004090| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000040a0| 64 6e 6c 20 50 6f 74 65 | 6e 74 69 61 6c 6c 79 20 |dnl Pote|ntially |
|000040b0| 61 64 64 20 24 61 64 64 | 69 74 69 6f 6e 61 6c 5f |add $add|itional_|
|000040c0| 6c 69 62 64 69 72 20 74 | 6f 20 24 4c 49 42 4e 41 |libdir t|o $LIBNA|
|000040d0| 4d 45 20 61 6e 64 20 24 | 4c 54 4c 49 42 4e 41 4d |ME and $|LTLIBNAM|
|000040e0| 45 2e 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |E.. | |
|000040f0| 20 20 20 20 20 20 20 64 | 6e 6c 20 42 75 74 20 64 | d|nl But d|
|00004100| 6f 6e 27 74 20 61 64 64 | 20 69 74 0a 20 20 20 20 |on't add| it. |
|00004110| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004120| 64 6e 6c 20 20 20 31 2e | 20 69 66 20 69 74 27 73 |dnl 1.| if it's|
|00004130| 20 74 68 65 20 73 74 61 | 6e 64 61 72 64 20 2f 75 | the sta|ndard /u|
|00004140| 73 72 2f 6c 69 62 2c 0a | 20 20 20 20 20 20 20 20 |sr/lib,.| |
|00004150| 20 20 20 20 20 20 20 20 | 20 20 20 20 64 6e 6c 20 | | dnl |
|00004160| 20 20 32 2e 20 69 66 20 | 69 74 27 73 20 2f 75 73 | 2. if |it's /us|
|00004170| 72 2f 6c 6f 63 61 6c 2f | 6c 69 62 20 61 6e 64 20 |r/local/|lib and |
|00004180| 77 65 20 61 72 65 20 75 | 73 69 6e 67 20 47 43 43 |we are u|sing GCC|
|00004190| 20 6f 6e 20 4c 69 6e 75 | 78 2c 0a 20 20 20 20 20 | on Linu|x,. |
|000041a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 64 | | d|
|000041b0| 6e 6c 20 20 20 33 2e 20 | 69 66 20 69 74 27 73 20 |nl 3. |if it's |
|000041c0| 61 6c 72 65 61 64 79 20 | 70 72 65 73 65 6e 74 20 |already |present |
|000041d0| 69 6e 20 24 4c 44 46 4c | 41 47 53 20 6f 72 20 74 |in $LDFL|AGS or t|
|000041e0| 68 65 20 61 6c 72 65 61 | 64 79 0a 20 20 20 20 20 |he alrea|dy. |
|000041f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 64 | | d|
|00004200| 6e 6c 20 20 20 20 20 20 | 63 6f 6e 73 74 72 75 63 |nl |construc|
|00004210| 74 65 64 20 24 4c 49 42 | 4e 41 4d 45 2c 0a 20 20 |ted $LIB|NAME,. |
|00004220| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004230| 20 20 64 6e 6c 20 20 20 | 34 2e 20 69 66 20 69 74 | dnl |4. if it|
|00004240| 20 64 6f 65 73 6e 27 74 | 20 65 78 69 73 74 20 61 | doesn't| exist a|
|00004250| 73 20 61 20 64 69 72 65 | 63 74 6f 72 79 2e 0a 20 |s a dire|ctory.. |
|00004260| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004270| 20 20 20 69 66 20 74 65 | 73 74 20 22 58 24 61 64 | if te|st "X$ad|
|00004280| 64 69 74 69 6f 6e 61 6c | 5f 6c 69 62 64 69 72 22 |ditional|_libdir"|
|00004290| 20 21 3d 20 22 58 2f 75 | 73 72 2f 6c 69 62 22 3b | != "X/u|sr/lib";|
|000042a0| 20 74 68 65 6e 0a 20 20 | 20 20 20 20 20 20 20 20 | then. | |
|000042b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 68 61 76 65 | | have|
|000042c0| 69 74 3d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |it=. | |
|000042d0| 20 20 20 20 20 20 20 20 | 20 20 69 66 20 74 65 73 | | if tes|
|000042e0| 74 20 22 58 24 61 64 64 | 69 74 69 6f 6e 61 6c 5f |t "X$add|itional_|
|000042f0| 6c 69 62 64 69 72 22 20 | 3d 20 22 58 2f 75 73 72 |libdir" |= "X/usr|
|00004300| 2f 6c 6f 63 61 6c 2f 6c | 69 62 22 3b 20 74 68 65 |/local/l|ib"; the|
|00004310| 6e 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |n. | |
|00004320| 20 20 20 20 20 20 20 20 | 20 20 69 66 20 74 65 73 | | if tes|
|00004330| 74 20 2d 6e 20 22 24 47 | 43 43 22 3b 20 74 68 65 |t -n "$G|CC"; the|
|00004340| 6e 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |n. | |
|00004350| 20 20 20 20 20 20 20 20 | 20 20 20 20 63 61 73 65 | | case|
|00004360| 20 24 68 6f 73 74 5f 6f | 73 20 69 6e 0a 20 20 20 | $host_o|s in. |
|00004370| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004380| 20 20 20 20 20 20 20 20 | 20 6c 69 6e 75 78 2a 29 | | linux*)|
|00004390| 20 68 61 76 65 69 74 3d | 79 65 73 3b 3b 0a 20 20 | haveit=|yes;;. |
|000043a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000043b0| 20 20 20 20 20 20 20 20 | 65 73 61 63 0a 20 20 20 | |esac. |
|000043c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000043d0| 20 20 20 20 20 66 69 0a | 20 20 20 20 20 20 20 20 | fi.| |
|000043e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 66 69 | | fi|
|000043f0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00004400| 20 20 20 20 20 20 20 69 | 66 20 74 65 73 74 20 2d | i|f test -|
|00004410| 7a 20 22 24 68 61 76 65 | 69 74 22 3b 20 74 68 65 |z "$have|it"; the|
|00004420| 6e 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |n. | |
|00004430| 20 20 20 20 20 20 20 20 | 20 20 68 61 76 65 69 74 | | haveit|
|00004440| 3d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |=. | |
|00004450| 20 20 20 20 20 20 20 20 | 20 20 66 6f 72 20 78 20 | | for x |
|00004460| 69 6e 20 24 4c 44 46 4c | 41 47 53 20 24 4c 49 42 |in $LDFL|AGS $LIB|
|00004470| 5b 5d 4e 41 4d 45 3b 20 | 64 6f 0a 20 20 20 20 20 |[]NAME; |do. |
|00004480| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004490| 20 20 20 20 20 41 43 5f | 4c 49 42 5f 57 49 54 48 | AC_|LIB_WITH|
|000044a0| 5f 46 49 4e 41 4c 5f 50 | 52 45 46 49 58 28 5b 65 |_FINAL_P|REFIX([e|
|000044b0| 76 61 6c 20 78 3d 5c 22 | 24 78 5c 22 5d 29 0a 20 |val x=\"|$x\"]). |
|000044c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000044d0| 20 20 20 20 20 20 20 20 | 20 69 66 20 74 65 73 74 | | if test|
|000044e0| 20 22 58 24 78 22 20 3d | 20 22 58 2d 4c 24 61 64 | "X$x" =| "X-L$ad|
|000044f0| 64 69 74 69 6f 6e 61 6c | 5f 6c 69 62 64 69 72 22 |ditional|_libdir"|
|00004500| 3b 20 74 68 65 6e 0a 20 | 20 20 20 20 20 20 20 20 |; then. | |
|00004510| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004520| 20 20 20 68 61 76 65 69 | 74 3d 79 65 73 0a 20 20 | havei|t=yes. |
|00004530| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004540| 20 20 20 20 20 20 20 20 | 20 20 62 72 65 61 6b 0a | | break.|
|00004550| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004560| 20 20 20 20 20 20 20 20 | 20 20 66 69 0a 20 20 20 | | fi. |
|00004570| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004580| 20 20 20 20 20 64 6f 6e | 65 0a 20 20 20 20 20 20 | don|e. |
|00004590| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000045a0| 20 20 69 66 20 74 65 73 | 74 20 2d 7a 20 22 24 68 | if tes|t -z "$h|
|000045b0| 61 76 65 69 74 22 3b 20 | 74 68 65 6e 0a 20 20 20 |aveit"; |then. |
|000045c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000045d0| 20 20 20 20 20 20 20 69 | 66 20 74 65 73 74 20 2d | i|f test -|
|000045e0| 64 20 22 24 61 64 64 69 | 74 69 6f 6e 61 6c 5f 6c |d "$addi|tional_l|
|000045f0| 69 62 64 69 72 22 3b 20 | 74 68 65 6e 0a 20 20 20 |ibdir"; |then. |
|00004600| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004610| 20 20 20 20 20 20 20 20 | 20 64 6e 6c 20 52 65 61 | | dnl Rea|
|00004620| 6c 6c 79 20 61 64 64 20 | 24 61 64 64 69 74 69 6f |lly add |$additio|
|00004630| 6e 61 6c 5f 6c 69 62 64 | 69 72 20 74 6f 20 24 4c |nal_libd|ir to $L|
|00004640| 49 42 4e 41 4d 45 2e 0a | 20 20 20 20 20 20 20 20 |IBNAME..| |
|00004650| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004660| 20 20 20 20 4c 49 42 5b | 5d 4e 41 4d 45 3d 22 24 | LIB[|]NAME="$|
|00004670| 7b 4c 49 42 5b 5d 4e 41 | 4d 45 7d 24 7b 4c 49 42 |{LIB[]NA|ME}${LIB|
|00004680| 5b 5d 4e 41 4d 45 3a 2b | 20 7d 2d 4c 24 61 64 64 |[]NAME:+| }-L$add|
|00004690| 69 74 69 6f 6e 61 6c 5f | 6c 69 62 64 69 72 22 0a |itional_|libdir".|
|000046a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000046b0| 20 20 20 20 20 20 20 20 | 20 20 66 69 0a 20 20 20 | | fi. |
|000046c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000046d0| 20 20 20 20 20 66 69 0a | 20 20 20 20 20 20 20 20 | fi.| |
|000046e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000046f0| 68 61 76 65 69 74 3d 0a | 20 20 20 20 20 20 20 20 |haveit=.| |
|00004700| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004710| 66 6f 72 20 78 20 69 6e | 20 24 4c 44 46 4c 41 47 |for x in| $LDFLAG|
|00004720| 53 20 24 4c 54 4c 49 42 | 5b 5d 4e 41 4d 45 3b 20 |S $LTLIB|[]NAME; |
|00004730| 64 6f 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |do. | |
|00004740| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 41 43 5f | | AC_|
|00004750| 4c 49 42 5f 57 49 54 48 | 5f 46 49 4e 41 4c 5f 50 |LIB_WITH|_FINAL_P|
|00004760| 52 45 46 49 58 28 5b 65 | 76 61 6c 20 78 3d 5c 22 |REFIX([e|val x=\"|
|00004770| 24 78 5c 22 5d 29 0a 20 | 20 20 20 20 20 20 20 20 |$x\"]). | |
|00004780| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004790| 20 69 66 20 74 65 73 74 | 20 22 58 24 78 22 20 3d | if test| "X$x" =|
|000047a0| 20 22 58 2d 4c 24 61 64 | 64 69 74 69 6f 6e 61 6c | "X-L$ad|ditional|
|000047b0| 5f 6c 69 62 64 69 72 22 | 3b 20 74 68 65 6e 0a 20 |_libdir"|; then. |
|000047c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000047d0| 20 20 20 20 20 20 20 20 | 20 20 20 68 61 76 65 69 | | havei|
|000047e0| 74 3d 79 65 73 0a 20 20 | 20 20 20 20 20 20 20 20 |t=yes. | |
|000047f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004800| 20 20 62 72 65 61 6b 0a | 20 20 20 20 20 20 20 20 | break.| |
|00004810| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004820| 20 20 66 69 0a 20 20 20 | 20 20 20 20 20 20 20 20 | fi. | |
|00004830| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 64 6f 6e | | don|
|00004840| 65 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e. | |
|00004850| 20 20 20 20 20 20 20 20 | 20 20 69 66 20 74 65 73 | | if tes|
|00004860| 74 20 2d 7a 20 22 24 68 | 61 76 65 69 74 22 3b 20 |t -z "$h|aveit"; |
|00004870| 74 68 65 6e 0a 20 20 20 | 20 20 20 20 20 20 20 20 |then. | |
|00004880| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 69 | | i|
|00004890| 66 20 74 65 73 74 20 2d | 64 20 22 24 61 64 64 69 |f test -|d "$addi|
|000048a0| 74 69 6f 6e 61 6c 5f 6c | 69 62 64 69 72 22 3b 20 |tional_l|ibdir"; |
|000048b0| 74 68 65 6e 0a 20 20 20 | 20 20 20 20 20 20 20 20 |then. | |
|000048c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000048d0| 20 64 6e 6c 20 52 65 61 | 6c 6c 79 20 61 64 64 20 | dnl Rea|lly add |
|000048e0| 24 61 64 64 69 74 69 6f | 6e 61 6c 5f 6c 69 62 64 |$additio|nal_libd|
|000048f0| 69 72 20 74 6f 20 24 4c | 54 4c 49 42 4e 41 4d 45 |ir to $L|TLIBNAME|
|00004900| 2e 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00004910| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 4c 54 | | LT|
|00004920| 4c 49 42 5b 5d 4e 41 4d | 45 3d 22 24 7b 4c 54 4c |LIB[]NAM|E="${LTL|
|00004930| 49 42 5b 5d 4e 41 4d 45 | 7d 24 7b 4c 54 4c 49 42 |IB[]NAME|}${LTLIB|
|00004940| 5b 5d 4e 41 4d 45 3a 2b | 20 7d 2d 4c 24 61 64 64 |[]NAME:+| }-L$add|
|00004950| 69 74 69 6f 6e 61 6c 5f | 6c 69 62 64 69 72 22 0a |itional_|libdir".|
|00004960| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004970| 20 20 20 20 20 20 20 20 | 20 20 66 69 0a 20 20 20 | | fi. |
|00004980| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004990| 20 20 20 20 20 66 69 0a | 20 20 20 20 20 20 20 20 | fi.| |
|000049a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 66 69 | | fi|
|000049b0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000049c0| 20 20 20 20 20 66 69 0a | 20 20 20 20 20 20 20 20 | fi.| |
|000049d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 3b 3b 0a 20 | | ;;. |
|000049e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000049f0| 20 2d 52 2a 29 0a 20 20 | 20 20 20 20 20 20 20 20 | -R*). | |
|00004a00| 20 20 20 20 20 20 20 20 | 20 20 64 69 72 3d 60 65 | | dir=`e|
|00004a10| 63 68 6f 20 22 58 24 64 | 65 70 22 20 7c 20 73 65 |cho "X$d|ep" | se|
|00004a20| 64 20 2d 65 20 27 73 2f | 5e 58 2d 52 2f 2f 27 60 |d -e 's/|^X-R//'`|
|00004a30| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00004a40| 20 20 20 20 20 64 6e 6c | 20 50 6f 74 65 6e 74 69 | dnl| Potenti|
|00004a50| 61 6c 6c 79 20 61 64 64 | 20 44 49 52 20 74 6f 20 |ally add| DIR to |
|00004a60| 72 70 61 74 68 64 69 72 | 73 2e 0a 20 20 20 20 20 |rpathdir|s.. |
|00004a70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 64 | | d|
|00004a80| 6e 6c 20 54 68 65 20 72 | 70 61 74 68 64 69 72 73 |nl The r|pathdirs|
|00004a90| 20 77 69 6c 6c 20 62 65 | 20 61 70 70 65 6e 64 65 | will be| appende|
|00004aa0| 64 20 74 6f 20 24 4c 49 | 42 4e 41 4d 45 20 61 74 |d to $LI|BNAME at|
|00004ab0| 20 74 68 65 20 65 6e 64 | 2e 0a 20 20 20 20 20 20 | the end|.. |
|00004ac0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 68 61 | | ha|
|00004ad0| 76 65 69 74 3d 0a 20 20 | 20 20 20 20 20 20 20 20 |veit=. | |
|00004ae0| 20 20 20 20 20 20 20 20 | 20 20 66 6f 72 20 78 20 | | for x |
|00004af0| 69 6e 20 24 72 70 61 74 | 68 64 69 72 73 3b 20 64 |in $rpat|hdirs; d|
|00004b00| 6f 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |o. | |
|00004b10| 20 20 20 20 20 20 20 20 | 69 66 20 74 65 73 74 20 | |if test |
|00004b20| 22 58 24 78 22 20 3d 20 | 22 58 24 64 69 72 22 3b |"X$x" = |"X$dir";|
|00004b30| 20 74 68 65 6e 0a 20 20 | 20 20 20 20 20 20 20 20 | then. | |
|00004b40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 68 61 | | ha|
|00004b50| 76 65 69 74 3d 79 65 73 | 0a 20 20 20 20 20 20 20 |veit=yes|. |
|00004b60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004b70| 20 62 72 65 61 6b 0a 20 | 20 20 20 20 20 20 20 20 | break. | |
|00004b80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 66 69 0a | | fi.|
|00004b90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004ba0| 20 20 20 20 64 6f 6e 65 | 0a 20 20 20 20 20 20 20 | done|. |
|00004bb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 69 66 20 | | if |
|00004bc0| 74 65 73 74 20 2d 7a 20 | 22 24 68 61 76 65 69 74 |test -z |"$haveit|
|00004bd0| 22 3b 20 74 68 65 6e 0a | 20 20 20 20 20 20 20 20 |"; then.| |
|00004be0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 72 70 | | rp|
|00004bf0| 61 74 68 64 69 72 73 3d | 22 24 72 70 61 74 68 64 |athdirs=|"$rpathd|
|00004c00| 69 72 73 20 24 64 69 72 | 22 0a 20 20 20 20 20 20 |irs $dir|". |
|00004c10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 66 69 | | fi|
|00004c20| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00004c30| 20 20 20 20 20 64 6e 6c | 20 50 6f 74 65 6e 74 69 | dnl| Potenti|
|00004c40| 61 6c 6c 79 20 61 64 64 | 20 44 49 52 20 74 6f 20 |ally add| DIR to |
|00004c50| 6c 74 72 70 61 74 68 64 | 69 72 73 2e 0a 20 20 20 |ltrpathd|irs.. |
|00004c60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004c70| 20 64 6e 6c 20 54 68 65 | 20 6c 74 72 70 61 74 68 | dnl The| ltrpath|
|00004c80| 64 69 72 73 20 77 69 6c | 6c 20 62 65 20 61 70 70 |dirs wil|l be app|
|00004c90| 65 6e 64 65 64 20 74 6f | 20 24 4c 54 4c 49 42 4e |ended to| $LTLIBN|
|00004ca0| 41 4d 45 20 61 74 20 74 | 68 65 20 65 6e 64 2e 0a |AME at t|he end..|
|00004cb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004cc0| 20 20 20 20 68 61 76 65 | 69 74 3d 0a 20 20 20 20 | have|it=. |
|00004cd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004ce0| 66 6f 72 20 78 20 69 6e | 20 24 6c 74 72 70 61 74 |for x in| $ltrpat|
|00004cf0| 68 64 69 72 73 3b 20 64 | 6f 0a 20 20 20 20 20 20 |hdirs; d|o. |
|00004d00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004d10| 69 66 20 74 65 73 74 20 | 22 58 24 78 22 20 3d 20 |if test |"X$x" = |
|00004d20| 22 58 24 64 69 72 22 3b | 20 74 68 65 6e 0a 20 20 |"X$dir";| then. |
|00004d30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004d40| 20 20 20 20 20 20 68 61 | 76 65 69 74 3d 79 65 73 | ha|veit=yes|
|00004d50| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00004d60| 20 20 20 20 20 20 20 20 | 20 62 72 65 61 6b 0a 20 | | break. |
|00004d70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004d80| 20 20 20 20 20 66 69 0a | 20 20 20 20 20 20 20 20 | fi.| |
|00004d90| 20 20 20 20 20 20 20 20 | 20 20 20 20 64 6f 6e 65 | | done|
|00004da0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00004db0| 20 20 20 20 20 69 66 20 | 74 65 73 74 20 2d 7a 20 | if |test -z |
|00004dc0| 22 24 68 61 76 65 69 74 | 22 3b 20 74 68 65 6e 0a |"$haveit|"; then.|
|00004dd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004de0| 20 20 20 20 20 20 6c 74 | 72 70 61 74 68 64 69 72 | lt|rpathdir|
|00004df0| 73 3d 22 24 6c 74 72 70 | 61 74 68 64 69 72 73 20 |s="$ltrp|athdirs |
|00004e00| 24 64 69 72 22 0a 20 20 | 20 20 20 20 20 20 20 20 |$dir". | |
|00004e10| 20 20 20 20 20 20 20 20 | 20 20 66 69 0a 20 20 20 | | fi. |
|00004e20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004e30| 20 3b 3b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 | ;;. | |
|00004e40| 20 20 20 20 20 20 2d 6c | 2a 29 0a 20 20 20 20 20 | -l|*). |
|00004e50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 64 | | d|
|00004e60| 6e 6c 20 48 61 6e 64 6c | 65 20 74 68 69 73 20 69 |nl Handl|e this i|
|00004e70| 6e 20 74 68 65 20 6e 65 | 78 74 20 72 6f 75 6e 64 |n the ne|xt round|
|00004e80| 2e 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00004e90| 20 20 20 20 20 20 6e 61 | 6d 65 73 5f 6e 65 78 74 | na|mes_next|
|00004ea0| 5f 72 6f 75 6e 64 3d 22 | 24 6e 61 6d 65 73 5f 6e |_round="|$names_n|
|00004eb0| 65 78 74 5f 72 6f 75 6e | 64 20 22 60 65 63 68 6f |ext_roun|d "`echo|
|00004ec0| 20 22 58 24 64 65 70 22 | 20 7c 20 73 65 64 20 2d | "X$dep"| | sed -|
|00004ed0| 65 20 27 73 2f 5e 58 2d | 6c 2f 2f 27 60 0a 20 20 |e 's/^X-|l//'`. |
|00004ee0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004ef0| 20 20 3b 3b 0a 20 20 20 | 20 20 20 20 20 20 20 20 | ;;. | |
|00004f00| 20 20 20 20 20 20 20 2a | 2e 6c 61 29 0a 20 20 20 | *|.la). |
|00004f10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004f20| 20 64 6e 6c 20 48 61 6e | 64 6c 65 20 74 68 69 73 | dnl Han|dle this|
|00004f30| 20 69 6e 20 74 68 65 20 | 6e 65 78 74 20 72 6f 75 | in the |next rou|
|00004f40| 6e 64 2e 20 54 68 72 6f | 77 20 61 77 61 79 20 74 |nd. Thro|w away t|
|00004f50| 68 65 20 2e 6c 61 27 73 | 0a 20 20 20 20 20 20 20 |he .la's|. |
|00004f60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 64 6e 6c | | dnl|
|00004f70| 20 64 69 72 65 63 74 6f | 72 79 3b 20 69 74 20 69 | directo|ry; it i|
|00004f80| 73 20 61 6c 72 65 61 64 | 79 20 63 6f 6e 74 61 69 |s alread|y contai|
|00004f90| 6e 65 64 20 69 6e 20 61 | 20 70 72 65 63 65 64 69 |ned in a| precedi|
|00004fa0| 6e 67 20 2d 4c 0a 20 20 | 20 20 20 20 20 20 20 20 |ng -L. | |
|00004fb0| 20 20 20 20 20 20 20 20 | 20 20 64 6e 6c 20 6f 70 | | dnl op|
|00004fc0| 74 69 6f 6e 2e 0a 20 20 | 20 20 20 20 20 20 20 20 |tion.. | |
|00004fd0| 20 20 20 20 20 20 20 20 | 20 20 6e 61 6d 65 73 5f | | names_|
|00004fe0| 6e 65 78 74 5f 72 6f 75 | 6e 64 3d 22 24 6e 61 6d |next_rou|nd="$nam|
|00004ff0| 65 73 5f 6e 65 78 74 5f | 72 6f 75 6e 64 20 22 60 |es_next_|round "`|
|00005000| 65 63 68 6f 20 22 58 24 | 64 65 70 22 20 7c 20 73 |echo "X$|dep" | s|
|00005010| 65 64 20 2d 65 20 27 73 | 2c 5e 58 2e 2a 2f 2c 2c |ed -e 's|,^X.*/,,|
|00005020| 27 20 2d 65 20 27 73 2c | 5e 6c 69 62 2c 2c 27 20 |' -e 's,|^lib,,' |
|00005030| 2d 65 20 27 73 2c 5c 2e | 6c 61 24 2c 2c 27 60 0a |-e 's,\.|la$,,'`.|
|00005040| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005050| 20 20 20 20 3b 3b 0a 20 | 20 20 20 20 20 20 20 20 | ;;. | |
|00005060| 20 20 20 20 20 20 20 20 | 20 2a 29 0a 20 20 20 20 | | *). |
|00005070| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005080| 64 6e 6c 20 4d 6f 73 74 | 20 6c 69 6b 65 6c 79 20 |dnl Most| likely |
|00005090| 61 6e 20 69 6d 6d 65 64 | 69 61 74 65 20 6c 69 62 |an immed|iate lib|
|000050a0| 72 61 72 79 20 6e 61 6d | 65 2e 0a 20 20 20 20 20 |rary nam|e.. |
|000050b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 4c | | L|
|000050c0| 49 42 5b 5d 4e 41 4d 45 | 3d 22 24 7b 4c 49 42 5b |IB[]NAME|="${LIB[|
|000050d0| 5d 4e 41 4d 45 7d 24 7b | 4c 49 42 5b 5d 4e 41 4d |]NAME}${|LIB[]NAM|
|000050e0| 45 3a 2b 20 7d 24 64 65 | 70 22 0a 20 20 20 20 20 |E:+ }$de|p". |
|000050f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 4c | | L|
|00005100| 54 4c 49 42 5b 5d 4e 41 | 4d 45 3d 22 24 7b 4c 54 |TLIB[]NA|ME="${LT|
|00005110| 4c 49 42 5b 5d 4e 41 4d | 45 7d 24 7b 4c 54 4c 49 |LIB[]NAM|E}${LTLI|
|00005120| 42 5b 5d 4e 41 4d 45 3a | 2b 20 7d 24 64 65 70 22 |B[]NAME:|+ }$dep"|
|00005130| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00005140| 20 20 20 20 20 3b 3b 0a | 20 20 20 20 20 20 20 20 | ;;.| |
|00005150| 20 20 20 20 20 20 20 20 | 65 73 61 63 0a 20 20 20 | |esac. |
|00005160| 20 20 20 20 20 20 20 20 | 20 20 20 64 6f 6e 65 0a | | done.|
|00005170| 20 20 20 20 20 20 20 20 | 20 20 20 20 66 69 0a 20 | | fi. |
|00005180| 20 20 20 20 20 20 20 20 | 20 65 6c 73 65 0a 20 20 | | else. |
|00005190| 20 20 20 20 20 20 20 20 | 20 20 64 6e 6c 20 44 69 | | dnl Di|
|000051a0| 64 6e 27 74 20 66 69 6e | 64 20 74 68 65 20 6c 69 |dn't fin|d the li|
|000051b0| 62 72 61 72 79 3b 20 61 | 73 73 75 6d 65 20 69 74 |brary; a|ssume it|
|000051c0| 20 69 73 20 69 6e 20 74 | 68 65 20 73 79 73 74 65 | is in t|he syste|
|000051d0| 6d 20 64 69 72 65 63 74 | 6f 72 69 65 73 0a 20 20 |m direct|ories. |
|000051e0| 20 20 20 20 20 20 20 20 | 20 20 64 6e 6c 20 6b 6e | | dnl kn|
|000051f0| 6f 77 6e 20 74 6f 20 74 | 68 65 20 6c 69 6e 6b 65 |own to t|he linke|
|00005200| 72 20 61 6e 64 20 72 75 | 6e 74 69 6d 65 20 6c 6f |r and ru|ntime lo|
|00005210| 61 64 65 72 2e 20 28 41 | 6c 6c 20 74 68 65 20 73 |ader. (A|ll the s|
|00005220| 79 73 74 65 6d 0a 20 20 | 20 20 20 20 20 20 20 20 |ystem. | |
|00005230| 20 20 64 6e 6c 20 64 69 | 72 65 63 74 6f 72 69 65 | dnl di|rectorie|
|00005240| 73 20 6b 6e 6f 77 6e 20 | 74 6f 20 74 68 65 20 6c |s known |to the l|
|00005250| 69 6e 6b 65 72 20 73 68 | 6f 75 6c 64 20 61 6c 73 |inker sh|ould als|
|00005260| 6f 20 62 65 20 6b 6e 6f | 77 6e 20 74 6f 20 74 68 |o be kno|wn to th|
|00005270| 65 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 64 6e |e. | dn|
|00005280| 6c 20 72 75 6e 74 69 6d | 65 20 6c 6f 61 64 65 72 |l runtim|e loader|
|00005290| 2c 20 6f 74 68 65 72 77 | 69 73 65 20 74 68 65 20 |, otherw|ise the |
|000052a0| 73 79 73 74 65 6d 20 69 | 73 20 73 65 76 65 72 65 |system i|s severe|
|000052b0| 6c 79 20 6d 69 73 63 6f | 6e 66 69 67 75 72 65 64 |ly misco|nfigured|
|000052c0| 2e 29 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 4c |.). | L|
|000052d0| 49 42 5b 5d 4e 41 4d 45 | 3d 22 24 7b 4c 49 42 5b |IB[]NAME|="${LIB[|
|000052e0| 5d 4e 41 4d 45 7d 24 7b | 4c 49 42 5b 5d 4e 41 4d |]NAME}${|LIB[]NAM|
|000052f0| 45 3a 2b 20 7d 2d 6c 24 | 6e 61 6d 65 22 0a 20 20 |E:+ }-l$|name". |
|00005300| 20 20 20 20 20 20 20 20 | 20 20 4c 54 4c 49 42 5b | | LTLIB[|
|00005310| 5d 4e 41 4d 45 3d 22 24 | 7b 4c 54 4c 49 42 5b 5d |]NAME="$|{LTLIB[]|
|00005320| 4e 41 4d 45 7d 24 7b 4c | 54 4c 49 42 5b 5d 4e 41 |NAME}${L|TLIB[]NA|
|00005330| 4d 45 3a 2b 20 7d 2d 6c | 24 6e 61 6d 65 22 0a 20 |ME:+ }-l|$name". |
|00005340| 20 20 20 20 20 20 20 20 | 20 66 69 0a 20 20 20 20 | | fi. |
|00005350| 20 20 20 20 66 69 0a 20 | 20 20 20 20 20 66 69 0a | fi. | fi.|
|00005360| 20 20 20 20 64 6f 6e 65 | 0a 20 20 64 6f 6e 65 0a | done|. done.|
|00005370| 20 20 69 66 20 74 65 73 | 74 20 22 58 24 72 70 61 | if tes|t "X$rpa|
|00005380| 74 68 64 69 72 73 22 20 | 21 3d 20 22 58 22 3b 20 |thdirs" |!= "X"; |
|00005390| 74 68 65 6e 0a 20 20 20 | 20 69 66 20 74 65 73 74 |then. | if test|
|000053a0| 20 2d 6e 20 22 24 68 61 | 72 64 63 6f 64 65 5f 6c | -n "$ha|rdcode_l|
|000053b0| 69 62 64 69 72 5f 73 65 | 70 61 72 61 74 6f 72 22 |ibdir_se|parator"|
|000053c0| 3b 20 74 68 65 6e 0a 20 | 20 20 20 20 20 64 6e 6c |; then. | dnl|
|000053d0| 20 57 65 69 72 64 20 70 | 6c 61 74 66 6f 72 6d 3a | Weird p|latform:|
|000053e0| 20 6f 6e 6c 79 20 74 68 | 65 20 6c 61 73 74 20 2d | only th|e last -|
|000053f0| 72 70 61 74 68 20 6f 70 | 74 69 6f 6e 20 63 6f 75 |rpath op|tion cou|
|00005400| 6e 74 73 2c 20 74 68 65 | 20 75 73 65 72 20 6d 75 |nts, the| user mu|
|00005410| 73 74 0a 20 20 20 20 20 | 20 64 6e 6c 20 70 61 73 |st. | dnl pas|
|00005420| 73 20 61 6c 6c 20 70 61 | 74 68 20 65 6c 65 6d 65 |s all pa|th eleme|
|00005430| 6e 74 73 20 69 6e 20 6f | 6e 65 20 6f 70 74 69 6f |nts in o|ne optio|
|00005440| 6e 2e 20 57 65 20 63 61 | 6e 20 61 72 72 61 6e 67 |n. We ca|n arrang|
|00005450| 65 20 74 68 61 74 20 66 | 6f 72 20 61 0a 20 20 20 |e that f|or a. |
|00005460| 20 20 20 64 6e 6c 20 73 | 69 6e 67 6c 65 20 6c 69 | dnl s|ingle li|
|00005470| 62 72 61 72 79 2c 20 62 | 75 74 20 6e 6f 74 20 77 |brary, b|ut not w|
|00005480| 68 65 6e 20 6d 6f 72 65 | 20 74 68 61 6e 20 6f 6e |hen more| than on|
|00005490| 65 20 24 4c 49 42 4e 41 | 4d 45 73 20 61 72 65 20 |e $LIBNA|MEs are |
|000054a0| 75 73 65 64 2e 0a 20 20 | 20 20 20 20 61 6c 6c 64 |used.. | alld|
|000054b0| 69 72 73 3d 0a 20 20 20 | 20 20 20 66 6f 72 20 66 |irs=. | for f|
|000054c0| 6f 75 6e 64 5f 64 69 72 | 20 69 6e 20 24 72 70 61 |ound_dir| in $rpa|
|000054d0| 74 68 64 69 72 73 3b 20 | 64 6f 0a 20 20 20 20 20 |thdirs; |do. |
|000054e0| 20 20 20 61 6c 6c 64 69 | 72 73 3d 22 24 7b 61 6c | alldi|rs="${al|
|000054f0| 6c 64 69 72 73 7d 24 7b | 61 6c 6c 64 69 72 73 3a |ldirs}${|alldirs:|
|00005500| 2b 24 68 61 72 64 63 6f | 64 65 5f 6c 69 62 64 69 |+$hardco|de_libdi|
|00005510| 72 5f 73 65 70 61 72 61 | 74 6f 72 7d 24 66 6f 75 |r_separa|tor}$fou|
|00005520| 6e 64 5f 64 69 72 22 0a | 20 20 20 20 20 20 64 6f |nd_dir".| do|
|00005530| 6e 65 0a 20 20 20 20 20 | 20 64 6e 6c 20 4e 6f 74 |ne. | dnl Not|
|00005540| 65 3a 20 68 61 72 64 63 | 6f 64 65 5f 6c 69 62 64 |e: hardc|ode_libd|
|00005550| 69 72 5f 66 6c 61 67 5f | 73 70 65 63 20 75 73 65 |ir_flag_|spec use|
|00005560| 73 20 24 6c 69 62 64 69 | 72 20 61 6e 64 20 24 77 |s $libdi|r and $w|
|00005570| 6c 2e 0a 20 20 20 20 20 | 20 61 63 6c 5f 73 61 76 |l.. | acl_sav|
|00005580| 65 5f 6c 69 62 64 69 72 | 3d 22 24 6c 69 62 64 69 |e_libdir|="$libdi|
|00005590| 72 22 0a 20 20 20 20 20 | 20 6c 69 62 64 69 72 3d |r". | libdir=|
|000055a0| 22 24 61 6c 6c 64 69 72 | 73 22 0a 20 20 20 20 20 |"$alldir|s". |
|000055b0| 20 65 76 61 6c 20 66 6c | 61 67 3d 5c 22 24 68 61 | eval fl|ag=\"$ha|
|000055c0| 72 64 63 6f 64 65 5f 6c | 69 62 64 69 72 5f 66 6c |rdcode_l|ibdir_fl|
|000055d0| 61 67 5f 73 70 65 63 5c | 22 0a 20 20 20 20 20 20 |ag_spec\|". |
|000055e0| 6c 69 62 64 69 72 3d 22 | 24 61 63 6c 5f 73 61 76 |libdir="|$acl_sav|
|000055f0| 65 5f 6c 69 62 64 69 72 | 22 0a 20 20 20 20 20 20 |e_libdir|". |
|00005600| 4c 49 42 5b 5d 4e 41 4d | 45 3d 22 24 7b 4c 49 42 |LIB[]NAM|E="${LIB|
|00005610| 5b 5d 4e 41 4d 45 7d 24 | 7b 4c 49 42 5b 5d 4e 41 |[]NAME}$|{LIB[]NA|
|00005620| 4d 45 3a 2b 20 7d 24 66 | 6c 61 67 22 0a 20 20 20 |ME:+ }$f|lag". |
|00005630| 20 65 6c 73 65 0a 20 20 | 20 20 20 20 64 6e 6c 20 | else. | dnl |
|00005640| 54 68 65 20 2d 72 70 61 | 74 68 20 6f 70 74 69 6f |The -rpa|th optio|
|00005650| 6e 73 20 61 72 65 20 63 | 75 6d 75 6c 61 74 69 76 |ns are c|umulativ|
|00005660| 65 2e 0a 20 20 20 20 20 | 20 66 6f 72 20 66 6f 75 |e.. | for fou|
|00005670| 6e 64 5f 64 69 72 20 69 | 6e 20 24 72 70 61 74 68 |nd_dir i|n $rpath|
|00005680| 64 69 72 73 3b 20 64 6f | 0a 20 20 20 20 20 20 20 |dirs; do|. |
|00005690| 20 61 63 6c 5f 73 61 76 | 65 5f 6c 69 62 64 69 72 | acl_sav|e_libdir|
|000056a0| 3d 22 24 6c 69 62 64 69 | 72 22 0a 20 20 20 20 20 |="$libdi|r". |
|000056b0| 20 20 20 6c 69 62 64 69 | 72 3d 22 24 66 6f 75 6e | libdi|r="$foun|
|000056c0| 64 5f 64 69 72 22 0a 20 | 20 20 20 20 20 20 20 65 |d_dir". | e|
|000056d0| 76 61 6c 20 66 6c 61 67 | 3d 5c 22 24 68 61 72 64 |val flag|=\"$hard|
|000056e0| 63 6f 64 65 5f 6c 69 62 | 64 69 72 5f 66 6c 61 67 |code_lib|dir_flag|
|000056f0| 5f 73 70 65 63 5c 22 0a | 20 20 20 20 20 20 20 20 |_spec\".| |
|00005700| 6c 69 62 64 69 72 3d 22 | 24 61 63 6c 5f 73 61 76 |libdir="|$acl_sav|
|00005710| 65 5f 6c 69 62 64 69 72 | 22 0a 20 20 20 20 20 20 |e_libdir|". |
|00005720| 20 20 4c 49 42 5b 5d 4e | 41 4d 45 3d 22 24 7b 4c | LIB[]N|AME="${L|
|00005730| 49 42 5b 5d 4e 41 4d 45 | 7d 24 7b 4c 49 42 5b 5d |IB[]NAME|}${LIB[]|
|00005740| 4e 41 4d 45 3a 2b 20 7d | 24 66 6c 61 67 22 0a 20 |NAME:+ }|$flag". |
|00005750| 20 20 20 20 20 64 6f 6e | 65 0a 20 20 20 20 66 69 | don|e. fi|
|00005760| 0a 20 20 66 69 0a 20 20 | 69 66 20 74 65 73 74 20 |. fi. |if test |
|00005770| 22 58 24 6c 74 72 70 61 | 74 68 64 69 72 73 22 20 |"X$ltrpa|thdirs" |
|00005780| 21 3d 20 22 58 22 3b 20 | 74 68 65 6e 0a 20 20 20 |!= "X"; |then. |
|00005790| 20 64 6e 6c 20 57 68 65 | 6e 20 75 73 69 6e 67 20 | dnl Whe|n using |
|000057a0| 6c 69 62 74 6f 6f 6c 2c | 20 74 68 65 20 6f 70 74 |libtool,| the opt|
|000057b0| 69 6f 6e 20 74 68 61 74 | 20 77 6f 72 6b 73 20 66 |ion that| works f|
|000057c0| 6f 72 20 62 6f 74 68 20 | 6c 69 62 72 61 72 69 65 |or both |librarie|
|000057d0| 73 20 61 6e 64 0a 20 20 | 20 20 64 6e 6c 20 65 78 |s and. | dnl ex|
|000057e0| 65 63 75 74 61 62 6c 65 | 73 20 69 73 20 2d 52 2e |ecutable|s is -R.|
|000057f0| 20 54 68 65 20 2d 52 20 | 6f 70 74 69 6f 6e 73 20 | The -R |options |
|00005800| 61 72 65 20 63 75 6d 75 | 6c 61 74 69 76 65 2e 0a |are cumu|lative..|
|00005810| 20 20 20 20 66 6f 72 20 | 66 6f 75 6e 64 5f 64 69 | for |found_di|
|00005820| 72 20 69 6e 20 24 6c 74 | 72 70 61 74 68 64 69 72 |r in $lt|rpathdir|
|00005830| 73 3b 20 64 6f 0a 20 20 | 20 20 20 20 4c 54 4c 49 |s; do. | LTLI|
|00005840| 42 5b 5d 4e 41 4d 45 3d | 22 24 7b 4c 54 4c 49 42 |B[]NAME=|"${LTLIB|
|00005850| 5b 5d 4e 41 4d 45 7d 24 | 7b 4c 54 4c 49 42 5b 5d |[]NAME}$|{LTLIB[]|
|00005860| 4e 41 4d 45 3a 2b 20 7d | 2d 52 24 66 6f 75 6e 64 |NAME:+ }|-R$found|
|00005870| 5f 64 69 72 22 0a 20 20 | 20 20 64 6f 6e 65 0a 20 |_dir". | done. |
|00005880| 20 66 69 0a 5d 29 0a 0a | 64 6e 6c 20 41 43 5f 4c | fi.])..|dnl AC_L|
|00005890| 49 42 5f 41 50 50 45 4e | 44 54 4f 56 41 52 28 56 |IB_APPEN|DTOVAR(V|
|000058a0| 41 52 2c 20 43 4f 4e 54 | 45 4e 54 53 29 20 61 70 |AR, CONT|ENTS) ap|
|000058b0| 70 65 6e 64 73 20 74 68 | 65 20 65 6c 65 6d 65 6e |pends th|e elemen|
|000058c0| 74 73 20 6f 66 20 43 4f | 4e 54 45 4e 54 53 20 74 |ts of CO|NTENTS t|
|000058d0| 6f 20 56 41 52 2c 0a 64 | 6e 6c 20 75 6e 6c 65 73 |o VAR,.d|nl unles|
|000058e0| 73 20 61 6c 72 65 61 64 | 79 20 70 72 65 73 65 6e |s alread|y presen|
|000058f0| 74 20 69 6e 20 56 41 52 | 2e 0a 64 6e 6c 20 57 6f |t in VAR|..dnl Wo|
|00005900| 72 6b 73 20 6f 6e 6c 79 | 20 66 6f 72 20 43 50 50 |rks only| for CPP|
|00005910| 46 4c 41 47 53 2c 20 6e | 6f 74 20 66 6f 72 20 4c |FLAGS, n|ot for L|
|00005920| 49 42 2a 20 76 61 72 69 | 61 62 6c 65 73 20 62 65 |IB* vari|ables be|
|00005930| 63 61 75 73 65 20 74 68 | 61 74 20 73 6f 6d 65 74 |cause th|at somet|
|00005940| 69 6d 65 73 0a 64 6e 6c | 20 63 6f 6e 74 61 69 6e |imes.dnl| contain|
|00005950| 73 20 74 77 6f 20 6f 72 | 20 74 68 72 65 65 20 63 |s two or| three c|
|00005960| 6f 6e 73 65 63 75 74 69 | 76 65 20 65 6c 65 6d 65 |onsecuti|ve eleme|
|00005970| 6e 74 73 20 74 68 61 74 | 20 62 65 6c 6f 6e 67 20 |nts that| belong |
|00005980| 74 6f 67 65 74 68 65 72 | 2e 0a 41 43 5f 44 45 46 |together|..AC_DEF|
|00005990| 55 4e 28 5b 41 43 5f 4c | 49 42 5f 41 50 50 45 4e |UN([AC_L|IB_APPEN|
|000059a0| 44 54 4f 56 41 52 5d 2c | 0a 5b 0a 20 20 66 6f 72 |DTOVAR],|.[. for|
|000059b0| 20 65 6c 65 6d 65 6e 74 | 20 69 6e 20 5b 24 32 5d | element| in [$2]|
|000059c0| 3b 20 64 6f 0a 20 20 20 | 20 68 61 76 65 69 74 3d |; do. | haveit=|
|000059d0| 0a 20 20 20 20 66 6f 72 | 20 78 20 69 6e 20 24 5b |. for| x in $[|
|000059e0| 24 31 5d 3b 20 64 6f 0a | 20 20 20 20 20 20 41 43 |$1]; do.| AC|
|000059f0| 5f 4c 49 42 5f 57 49 54 | 48 5f 46 49 4e 41 4c 5f |_LIB_WIT|H_FINAL_|
|00005a00| 50 52 45 46 49 58 28 5b | 65 76 61 6c 20 78 3d 5c |PREFIX([|eval x=\|
|00005a10| 22 24 78 5c 22 5d 29 0a | 20 20 20 20 20 20 69 66 |"$x\"]).| if|
|00005a20| 20 74 65 73 74 20 22 58 | 24 78 22 20 3d 20 22 58 | test "X|$x" = "X|
|00005a30| 24 65 6c 65 6d 65 6e 74 | 22 3b 20 74 68 65 6e 0a |$element|"; then.|
|00005a40| 20 20 20 20 20 20 20 20 | 68 61 76 65 69 74 3d 79 | |haveit=y|
|00005a50| 65 73 0a 20 20 20 20 20 | 20 20 20 62 72 65 61 6b |es. | break|
|00005a60| 0a 20 20 20 20 20 20 66 | 69 0a 20 20 20 20 64 6f |. f|i. do|
|00005a70| 6e 65 0a 20 20 20 20 69 | 66 20 74 65 73 74 20 2d |ne. i|f test -|
|00005a80| 7a 20 22 24 68 61 76 65 | 69 74 22 3b 20 74 68 65 |z "$have|it"; the|
|00005a90| 6e 0a 20 20 20 20 20 20 | 5b 24 31 5d 3d 22 24 7b |n. |[$1]="${|
|00005aa0| 5b 24 31 5d 7d 24 7b 5b | 24 31 5d 3a 2b 20 7d 24 |[$1]}${[|$1]:+ }$|
|00005ab0| 65 6c 65 6d 65 6e 74 22 | 0a 20 20 20 20 66 69 0a |element"|. fi.|
|00005ac0| 20 20 64 6f 6e 65 0a 5d | 29 0a 00 00 00 00 00 00 | done.]|).......|
|00005ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b00| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00005b10| 54 68 69 73 20 72 65 73 | 6f 75 72 63 65 20 66 6f |This res|ource fo|
|00005b20| 72 6b 20 69 6e 74 65 6e | 74 69 6f 6e 61 6c 6c 79 |rk inten|tionally|
|00005b30| 20 6c 65 66 74 20 62 6c | 61 6e 6b 20 20 20 00 00 | left bl|ank ..|
|00005b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005c00| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00005c10| 00 00 00 00 00 00 00 00 | 00 1c 00 1e ff ff 00 00 |........|........|
|00005c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005c60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005c70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+